_entitiesForClass.setObjectForKey(eoentity, eoentity.className());
NSMutableArray array = (NSMutableArray)_entitiesForClass.objectForKey(eoentity.className()); if(array == null) { array = new NSMutableArray(); } array.addObject(eoentity); _entitiesForClass.setObjectForKey(array, eoentity.className());
    public static void registerDescriptionForEntitiesInModel(EOModel model) {        if (!_registeredModelNames.containsObject(model.name())) {            for (Enumeration e = model.entities().objectEnumerator(); e.hasMoreElements();) {                EOEntity eoentity = (EOEntity)e.nextElement();                if(cat.isDebugEnabled())                    cat.debug("Adding entity " +eoentity.name()+ " with class " + eoentity.className());                _entitiesForClass.setObjectForKey(eoentity, eoentity.className());            }            _registeredModelNames.addObject(model.name());        }        // Don't want this guy getting in our way later on ;)        NSNotificationCenter.defaultCenter().removeObserver(model);    }