for (int rowNum = 0; rowNum < rowElements.getLength(); rowNum++) {
NSMutableDictionary<String, Object> row = new NSMutableDictionary<String, Object>();
Element rowElement = (Element) rowElements.item(rowNum);
for (int attributeNum = 0; attributeNum < attributesToFetch.count(); attributeNum++) {
EOAttribute attribute = (EOAttribute) attributesToFetch.objectAtIndex(attributeNum);
String columnName = attribute.columnName();
NodeList attributeElements = rowElement.getElementsByTagName(columnName);
Object value;
if (attributeElements.getLength() == 0) {
if (rowElement.hasAttribute(columnName)) {