EOModel m = EOModelGroup.defaultGroup().modelNamed(modelName);
EOModel m = modelGroup(null).modelNamed(modelName);
    public static String createSchemaSQLForEntitiesInModelWithNameAndOptions(NSArray entities, String modelName, NSDictionary optionsCreate) {        //get the JDBCAdaptor        EODatabaseContext dc = EOUtilities.databaseContextForModelNamed(ERXEC.newEditingContext(),                                                                        modelName);        EOAdaptorContext ac = dc.adaptorContext();        //ak: stupid trick to get around having to link to JDBCAdaptor        EOSynchronizationFactory sf = (EOSynchronizationFactory)NSKeyValueCodingAdditions.Utility.valueForKeyPath(ac, "adaptor.plugIn.createSynchronizationFactory");        EOModel m = EOModelGroup.defaultGroup().modelNamed(modelName);        Enumeration e = m.entities().objectEnumerator();        entities = entities == null ? new NSMutableArray() : entities;        if (entities == null) {            NSMutableArray ar = new NSMutableArray();            while (e.hasMoreElements()) {                EOEntity currentEntity = (EOEntity) e.nextElement();                if (!(currentEntity.name().startsWith("EO") && currentEntity.name().endsWith("Prototypes"))) {                    //we do not want to add EOXXXPrototypes entities                    ar.addObject(currentEntity);                }            }            entities = ar;        }        return sf.schemaCreationScriptForEntities(entities, optionsCreate);    }