Class keyType = clr.classForName(ammd.getMap().getKeyType());
Class valType = clr.classForName(ammd.getMap().getValueType());
while (entryIter.hasNext()) {
Map.Entry entry = (Map.Entry)entryIter.next();
Object key = entry.getKey();
Function keyFunc = pojoToDatastoreTypeFunction.get(keyType);
if (keyFunc != null) {
result.add(keyFunc.apply(key));
} else {
result.add(key);
}
Object val = entry.getValue();
Function valFunc = pojoToDatastoreTypeFunction.get(valType);
if (valFunc != null) {
result.add(valFunc.apply(val));
} else {
result.add(val);
}
}