EOEditingContext ec = eo.editingContext();
EOEntity entity = EOUtilities.entityNamed(ec, eo.entityName());
NSArray<String> pkAttributes = entity.primaryKeyAttributeNames();
int count = pkAttributes.count();
NSMutableDictionary<String, Object> nsmutabledictionary = new NSMutableDictionary<String, Object>(count);
NSArray classPropertyNames = entity.classPropertyNames();
while (count-- != 0) {
String key = pkAttributes.objectAtIndex(count);
if(!classPropertyNames.containsObject(key))
return null;
Object value = eo.valueForKey(key);