// First get BeanDeploymentArchive for this ejb
BeanDeploymentArchive bda = getBDAForBeanClass(topLevelBundleDesc, ejb.getEjbClassName());
WeldBootstrap bootstrap = weldDeployer.getBootstrapForApp(ejb.getEjbBundleDescriptor().getApplication());
WeldManager weldManager = bootstrap.getManager(bda);
org.jboss.weld.ejb.spi.EjbDescriptor ejbDesc = weldManager.getEjbDescriptor(ejb.getName());
// 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.