throw new RuntimeException("Unable to generate value from sequence named: " + sequenceName + " in model: " + modelNamed);
throw new RuntimeException("Unable to generate value from sequence named: " + sequenceName + " in model: " + modelName);
    public static Number getNextValFromSequenceNamed(EOEditingContext ec,                                                     String modelNamed,                                                     String sequenceName) {        String sqlString = "select "+sequenceName+".nextVal from dual";        NSArray array = EOUtilities.rawRowsForSQL(ec, modelNamed, sqlString);        if (array.count() == 0) {            throw new RuntimeException("Unable to generate value from sequence named: " + sequenceName + " in model: " + modelNamed);                    }        NSDictionary dictionary = (NSDictionary)array.objectAtIndex(0);        NSArray valuesArray = dictionary.allValues();        return (Number)valuesArray.objectAtIndex(0);    }