checkForeignKeys(eoentity);
        public void registerDescriptionForEntitiesInModel(EOModel model) {            if (!_registeredModelNames.containsObject(model.name())) {                for (Enumeration e = model.entities().objectEnumerator(); e.hasMoreElements();) {                    EOEntity eoentity = (EOEntity)e.nextElement();                    String className = eoentity.className();                    prepareEntityForRegistration(eoentity);                    checkForeignKeys(eoentity);                    NSMutableArray array = (NSMutableArray)_entitiesForClass.objectForKey(className);                    if(array == null) {                        array = new NSMutableArray();                    }                    if (log.isDebugEnabled())                        log.debug("Adding entity " +eoentity.name()+ " with class " + eoentity.className());                    array.addObject(eoentity);                    _entitiesForClass.setObjectForKey(array, eoentity.className());                    //HACK ALERT: (ak) We work around classDescriptionForNewInstances() of EOEntity being broken here...                    registerDescriptionForEntity(eoentity);                }                _registeredModelNames.addObject(model.name());            }                        // Don't want this guy getting in our way later on ;            NSNotificationCenter.defaultCenter().removeObserver(model);        }