return NSDictionary.EmptyDictionary;
}
NSMutableDictionary<String, NSSet<EOGlobalID>> result = new NSMutableDictionary<String, NSSet<EOGlobalID>>();
for (EOGlobalID gid : gids) {
if (gid instanceof EOKeyGlobalID) {
EOKeyGlobalID keyGID = (EOKeyGlobalID)gid;
String entityName = keyGID.entityName();
if (shouldSynchronizeEntity(entityName)) {
NSMutableSet<EOGlobalID> globalIDsForEntity = (NSMutableSet<EOGlobalID>) result.objectForKey(entityName);
if (globalIDsForEntity == null) {
globalIDsForEntity = new NSMutableSet<EOGlobalID>();
result.setObjectForKey(globalIDsForEntity, entityName);