} else if (method.getName().equals("getEJBMetaData") && method.getParameterTypes().length == 0) {
final Class<?> ejbObjectClass;
final Class<?> pkClass;
try {
ejbObjectClass = classIndex.classIndex(createdView.getViewClassName()).getModuleClass();
pkClass = classIndex.classIndex(componentDescription.getPrimaryKeyType()).getModuleClass();
} catch (ClassNotFoundException e) {
throw new DeploymentUnitProcessingException("Could not load view class for " + componentDescription.getComponentName(), e);
}
final EjbMetadataInterceptorFactory factory = new EjbMetadataInterceptorFactory(ejbObjectClass, configuration.getViewClass(), pkClass, false, false);