Source:
protected Deployment createDeployment(ResourceLoader resourceLoader, CDI11Bootstrap bootstrap) { Iterable<Metadata<Extension>> loadedExtensions = loadExtensions(WeldSEResourceLoader.getClassLoader(), bootstrap); TypeDiscoveryConfiguration typeDiscoveryConfiguration = bootstrap.startExtensions(loadedExtensions); if (Reflections.isClassLoadable(JANDEX_INDEX_CLASS_NAME, resourceLoader)) { Class<?> clazz = Reflections.loadClass(JANDEX_ENABLED_DISCOVERY_STRATEGY_CLASS_STRING, resourceLoader); try { strategy = (DiscoveryStrategy) clazz.getConstructor(ResourceLoader.class, Bootstrap.class, TypeDiscoveryConfiguration.class).newInstance(resourceLoader, bootstrap, typeDiscoveryConfiguration); } catch (Exception e) { throw new IllegalStateException("Unable to instantiate jandex discovery strategy", e); } } else { strategy = new DefaultDiscoveryStrategy(resourceLoader, bootstrap); } Set<WeldSEBeanDeploymentArchive> discoveredArchives = strategy.discoverArchives(); String isolation = AccessController.doPrivileged(new GetSystemPropertyAction(COMPOSITE_ARCHIVE_ENABLEMENT_SYSTEM_PROPERTY)); if (isolation != null && Boolean.valueOf(isolation).equals(Boolean.FALSE)) { WeldSEBeanDeploymentArchive archive = mergeToOne(bootstrap, discoveredArchives); return new WeldSEUrlDeployment(resourceLoader, bootstrap, Sets.<WeldSEBeanDeploymentArchive> newHashSet(archive), loadedExtensions); } else { return new WeldSEUrlDeployment(resourceLoader, bootstrap, discoveredArchives, loadedExtensions); } }

Target:
protected Deployment createDeployment(ResourceLoader resourceLoader, CDI11Bootstrap bootstrap) { Iterable<Metadata<Extension>> loadedExtensions = loadExtensions(WeldSEResourceLoader.getClassLoader(), bootstrap); TypeDiscoveryConfiguration typeDiscoveryConfiguration = bootstrap.startExtensions(loadedExtensions); if (Reflections.isClassLoadable(JANDEX_INDEX_CLASS_NAME, resourceLoader)) { Class<?> clazz = Reflections.loadClass(JANDEX_ENABLED_DISCOVERY_STRATEGY_CLASS_STRING, resourceLoader); try { strategy = (DiscoveryStrategy) clazz.getConstructor(ResourceLoader.class, Bootstrap.class, TypeDiscoveryConfiguration.class).newInstance(resourceLoader, bootstrap, typeDiscoveryConfiguration); log.debug("For the deployment, JandexEnabledDiscoveryStrategy is used."); } catch (Exception e) { throw new IllegalStateException("Unable to instantiate jandex discovery strategy", e); } } else { strategy = new DefaultDiscoveryStrategy(resourceLoader, bootstrap); log.debug("For the deployment, DefaultDiscoveryStrategy is used."); } Set<WeldSEBeanDeploymentArchive> discoveredArchives = strategy.discoverArchives(); String isolation = AccessController.doPrivileged(new GetSystemPropertyAction(COMPOSITE_ARCHIVE_ENABLEMENT_SYSTEM_PROPERTY)); Deployment deployment=null; if (isolation != null && Boolean.valueOf(isolation).equals(Boolean.FALSE)) { log.debug(SYSTEM_PROPERTY_STRING + COMPOSITE_ARCHIVE_ENABLEMENT_SYSTEM_PROPERTY + " is set to false value, so only one bean archive will be created."); WeldSEBeanDeploymentArchive archive = mergeToOne(bootstrap, discoveredArchives); deployment = new WeldSEUrlDeployment(resourceLoader, bootstrap, Collections.singleton(archive), loadedExtensions); } else { log.debug(SYSTEM_PROPERTY_STRING + COMPOSITE_ARCHIVE_ENABLEMENT_SYSTEM_PROPERTY + " is on default true value, creating multiple bean archives if needed."); deployment= new WeldSEUrlDeployment(resourceLoader, bootstrap, discoveredArchives, loadedExtensions); } if (strategy.getClass().getName().equals(JANDEX_ENABLED_DISCOVERY_STRATEGY_CLASS_NAME)) { ClassFileServices classFileServices = new WeldSEClassFileServices(strategy); deployment.getServices().add(ClassFileServices.class, classFileServices); } return deployment; }