throw new IllegalArgumentException("Injection point represents a method which doesn't follow JavaBean conventions (must have exactly one parameter) " + injectionPoint);
}
if (!ejb.lookup().equals("")) {
final ServiceName ejbServiceName = ContextNames.serviceNameOfContext(moduleDescription.getApplicationName(), moduleDescription.getModuleName(), moduleDescription.getModuleName(), ejb.lookup());
ServiceController<?> controller = serviceRegistry.getRequiredService(ejbServiceName);
ManagedReferenceFactory factory = (ManagedReferenceFactory) controller.getValue();
return factory.getReference().getInstance();
} else {
final Set<ViewDescription> viewService;
if (ejb.beanName().isEmpty()) {
if (ejb.beanInterface() != Object.class) {
viewService = applicationDescription.getComponentsForViewName(ejb.beanInterface().getName());