public static EODatabaseContext databaseContextForEntityNamed(String entityName, EOObjectStoreCoordinator osc) {
private static synchronized EODatabaseContext databaseContextForEntityNamed(String entityName, ObjectStoreCoordinator osc) {
        public static EODatabaseContext databaseContextForEntityNamed(String entityName, EOObjectStoreCoordinator osc) {            String modelName = EOModelGroup.defaultGroup().entityNamed(entityName).model().name();            EOModelGroup eomodelgroup = EOModelGroup.modelGroupForObjectStoreCoordinator(osc);            EOModel eomodel = eomodelgroup.modelNamed(modelName);            if(eomodel == null) {                throw new EOObjectNotAvailableException("databaseContextForEntityNamed: cannot find model named " + modelName + " associated with this EOEditingContext");            } else {                EODatabaseContext eodatabasecontext = EODatabaseContext.registeredDatabaseContextForModel(eomodel, osc);                return eodatabasecontext;            }        }