public ModularWeldDeployment(Bootstrap bootstrap, ResourceLoader resourceLoader, ModuleScanResult scanResult)
{
super(bootstrap);
getServices().add(BootstrapConfiguration.class, new PerformanceTunedBootstrapConfiguration(resourceLoader));
this.beanDeploymentArchive = new ImmutableBeanDeploymentArchive("classpath", scanResult.getDiscoveredClasses(),
bootstrap.parse(scanResult.getDiscoveredResourceUrls()));
this.beanDeploymentArchive.getServices().add(ResourceLoader.class, resourceLoader);
}