fixLockingForMysql(model.connectionDictionary().valueForKey("URL"), eoentity);
    public static 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();                if(className.equals("EOGenericRecord")) {                    className = ERXGenericRecord.class.getName();                    eoentity.setClassName(className);                    cat.debug(eoentity.name() + ": setting class from EOGenericRecord to " + className);                }                if(cat.isDebugEnabled())                    cat.debug("Adding entity " +eoentity.name()+ " with class " + eoentity.className());                                NSMutableArray array = (NSMutableArray)_entitiesForClass.objectForKey(className);                if(array == null) {                    array = new NSMutableArray();                }                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);    }