@SuppressWarnings("unchecked")
public static EOGlobalID globalIDForString(EOEditingContext ec, String entityName, String string) {
NSDictionary<String, Object> values = primaryKeyDictionaryForString(ec, entityName, string);
EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, entityName);
NSArray<String> pks = entity.primaryKeyAttributeNames();
EOGlobalID gid = EOKeyGlobalID.globalIDWithEntityName(entityName, values.objectsForKeys(pks, null).objects());
return gid;
}