EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName);
EOEntity entity = EOModelGroup.modelGroupForObjectStoreCoordinator(sender).entityNamed(entityName);
        private synchronized void processUpdates(NSDictionary updatedEntDict, ObjectStoreCoordinator sender) {            NSArray entityNames = updatedEntDict.allKeys();            Enumeration entitiesEnumerator = entityNames.objectEnumerator();            while (entitiesEnumerator.hasMoreElements()) {                String entityName = (String)entitiesEnumerator.nextElement();                EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName);                NSArray snapshots = (NSArray)updatedEntDict.objectForKey(entityName);                for (int i = 0; i < synchronizer.oscs.count(); i++) {                    ObjectStoreCoordinator osc = (ObjectStoreCoordinator)synchronizer.oscs.objectAtIndex(i);                    if (osc == sender) continue;                    EODatabaseContext dbContext = databaseContextForEntityNamed(entityName, osc);                    EODatabase database = dbContext.database();                    Enumeration snapshotsEnumerator = snapshots.objectEnumerator();                    while (snapshotsEnumerator.hasMoreElements()) {                        NSDictionary snapshot = (NSDictionary)snapshotsEnumerator.nextElement();                        if (snapshot != null) {                            EOGlobalID globalID = entity.globalIDForRow(snapshot);                            //System.out.println("about to lock dbc "+dbContext.hashCode());                            EODatabaseContext._EOAssertSafeMultiThreadedAccess(dbContext);                            dbContext.lock();                            database.forgetSnapshotForGlobalID(globalID);                            database.recordSnapshotForGlobalID(snapshot, globalID);                            dbContext.unlock();                            //System.out.println("after unlock dbc "+dbContext.hashCode());                        }                    }                }            }        }