public BeanDeploymentArchiveImpl(Set<String> beanClasses, BeansXml beansXml, Module module, String id, BeanArchiveType beanArchiveType, boolean root) {
this.beanClasses = new ConcurrentSkipListSet<String>(beanClasses);
this.beanDeploymentArchives = new CopyOnWriteArraySet<BeanDeploymentArchive>();
this.beansXml = beansXml;
this.id = id;
this.serviceRegistry = new SimpleServiceRegistry();
this.resourceLoader = new WeldModuleResourceLoader(module);
this.serviceRegistry.add(ResourceLoader.class, resourceLoader);
this.serviceRegistry.add(EjbServices.class, new WeldEjbServices());
this.module = module;
this.ejbDescriptors = new HashSet<EjbDescriptor<?>>();