public void checkEntity() {
protected void checkEntity() {
    public void checkEntity() {        if(_entity.model() == null) {            try {                EOEntity registeredEntity = EOModelGroup.defaultGroup().entityNamed(_entity.name());                if(registeredEntity != null) {                    _entity = registeredEntity;                } else {                    EOModel model = _entity.model();                    if(model == null) {                        model = (EOModel)EOModelGroup.defaultGroup().models().lastObject();                    }                    model.addEntity(_entity);                    log.warn("Added <" + _entity.name() + "> to default model group.");                }            } catch (Exception ex) {                throw new RuntimeException("Model or modelgroup for <" + _entity.name() + "> is null: " + entity().model(), ex);            }        }    }