// Get an the Bean object
Bean<?> bean = weldManager.getBean(ejbDesc);
// Create the injection target
InjectionTarget it = weldManager.createInjectionTarget(ejbDesc);
// Per instance required, create the creational context
CreationalContext<?> cc = weldManager.createCreationalContext(bean);
Object beanInstance = instance;
if( beanInstance == null ) {
// Create instance , perform constructor injection.
beanInstance = it.produce(cc);
}
// Injection is not performed yet. Separate injectEJBInstance() call is required.
return new JCDIInjectionContextImpl(it, cc, beanInstance);