e = autoDataMap.getSession().createEntity(null,entity);
autoDataMap.getEntities().put(entity,e); // Remember the one we created, so we
}
} // don't create another one.
}else {
String skey = entity+"$"+iKey.stringValue();
if(key!=null &&
!(key instanceof String
&& ((String)key).length()==0)) { // NOTE: We are NOT allowing "" as a key here!
// If so, construct a key for that entity
e = (IREntity)autoDataMap.getEntities().get(skey); // and look for it.