//we just take the first module, it should not make any difference. The idea that
//the same beans.xml is accessible via two different CL's is not something we can deal with
final Module module = entry.getValue().get(0).getAttachment(Attachments.MODULE);
final BeansXml beansXml = parseBeansXml(entry.getKey(), parser, deploymentUnit);
final UrlScanner urlScanner = new UrlScanner();
final List<String> discoveredClasses = new ArrayList<String>();
if(!urlScanner.handleBeansXml(entry.getKey(), discoveredClasses)) {
continue;
}
final BeanDeploymentArchiveImpl bda = new BeanDeploymentArchiveImpl(new HashSet<String>(discoveredClasses), beansXml, module, beanArchiveIdPrefix + entry.getKey().toExternalForm());