for (int i = 0; i < reader.getAttributeCount(); i++) {
QName attributeName = reader.getAttributeName(i);
if(attributeName.getNamespaceURI() != null && attributeName.getNamespaceURI().length() > 0) {
if(!elementQName.getNamespaceURI().equals(attributeName.getNamespaceURI()) ) {
Object attributeValue = extensionAttributeProcessor.read(attributeName, reader, processorContext);
Extension attributeExtension;
if (attributeValue instanceof Extension) {
attributeExtension = (Extension)attributeValue;
} else {
attributeExtension = assemblyFactory.createExtension();
attributeExtension.setQName(attributeName);
attributeExtension.setValue(attributeValue);
attributeExtension.setAttribute(true);
}
((Extensible)jmsBinding).getAttributeExtensions().add(attributeExtension);
}
}
}