parse(descriptor, mapper, context);
//we use this map to detect the presence of two different but functionally equivalent namespaces
final Map<AttachmentKey<?>, QName> usedNamespaces = new HashMap<AttachmentKey<?>, QName>();
for(Map.Entry<QName, Object> entry : context.getParseResults().entrySet()) {
final AttachmentKey attachmentKey = namespaceAttachments.get(entry.getKey());
if(usedNamespaces.containsKey(attachmentKey)) {
ServerMessages.MESSAGES.equivilentNamespacesInJBossXml(entry.getKey(), usedNamespaces.get(attachmentKey));
}
usedNamespaces.put(attachmentKey, entry.getKey());
deploymentUnit.putAttachment(attachmentKey, entry.getValue());