Source:
<code>public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); } beanDeployer.addBuiltInBean(new EventMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new EventBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptorMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratorMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager)); } for (ContextHolder<? extends Context> context : contexts) { beanDeployer.addBuiltInBean(ContextBean.of(context, beanManager)); } beanDeployer.addBuiltInBean(new RequestContextControllerBean(beanManager)); <START> if (beanDeploymentArchive.getBeansXml() != null) { <END> if (beanDeploymentArchive.getBeansXml().isTrimmed()) { beanDeployer.getEnvironment().trim(); } } beanDeployer.createClassBeans(); }</code><technical_language>if (beanDeploymentArchive.getBeansXml() != null && beanDeploymentArchive.getBeansXml().isTrimmed())</technical_language>

Target:
public void createBeans(Environment environment) { getBeanManager().getServices().get(WeldModules.class).preBeanRegistration(this, environment); if (getBeanManager().getServices().get(EjbSupport.class) == EjbSupport.NOOP_IMPLEMENTATION) { beanDeployer.addBuiltInBean(new InjectionPointBean(beanManager)); } beanDeployer.addBuiltInBean(new EventMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new EventBean(beanManager)); beanDeployer.addBuiltInBean(new InstanceBean(beanManager)); beanDeployer.addBuiltInBean(new ConversationBean(beanManager)); beanDeployer.addBuiltInBean(new BeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratedBeanMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptorMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new DecoratorMetadataBean(beanManager)); beanDeployer.addBuiltInBean(new InterceptionFactoryBean(beanManager)); if (beanManager.getServices().getRequired(SecurityServices.class) != NoopSecurityServices.INSTANCE) { beanDeployer.addBuiltInBean(new PrincipalBean(beanManager)); } for (ContextHolder<? extends Context> context : contexts) { beanDeployer.addBuiltInBean(ContextBean.of(context, beanManager)); } beanDeployer.addBuiltInBean(new RequestContextControllerBean(beanManager)); if (beanDeploymentArchive.getBeansXml() != null && beanDeploymentArchive.getBeansXml().isTrimmed()) { beanDeployer.getEnvironment().trim(); } beanDeployer.createClassBeans(); }