private Object buildObjectValuesFromDOMRecord(DOMRecord record, AbstractSession session, ObjectBuildingQuery query) {
//This DOMRecord represents the root node of the AnyType instance
//Grab ALL children to populate the collection.
DirectMapContainerPolicy cp = (DirectMapContainerPolicy) getContainerPolicy();
Object container = cp.containerInstance();
org.w3c.dom.Element root = (Element) record.getDOM();
NamedNodeMap attributes = root.getAttributes();
Attr next;
String localName;
for (int i = 0; i < attributes.getLength(); i++) {