eo = ERXUtilities.createEO(entity.name(), ec);
eo = ERXEOControlUtilities.createAndInsertObject(ec, entity.name());
    private EOEnterpriseObject _newObjectWithEntity(EOEntity entity, EOEditingContext ec) {        if (entity.isReadOnly()) {            throw new IllegalArgumentException(" You can't create a new instance of " + entity.name() + ". It is a read-only entity.  It is marked read-only in the model.");        }        if (entity.isAbstractEntity()) {            throw new IllegalArgumentException(" You can't create a new instance of " + entity.name() + ". It is an abstract entity");        }        EOEnterpriseObject eo;        try {	    ec.lock();            eo = ERXUtilities.createEO(entity.name(), ec);        } finally {            ec.unlock();        }        return eo;    }