public void _checkForDuplicateModelName(EOModel _model, String _newName) { EOModel entity = getModelNamed(_newName); if (entity != null && entity != _model) { throw new IllegalArgumentException("There is already an entity named '" + _newName + "' in " + this + ".");
public void _checkForDuplicateModelName(EOModel _model, String _newName) throws DuplicateModelNameException { EOModel model = getModelNamed(_newName); if (model != null && model != _model) { throw new DuplicateModelNameException(_newName, this);
  public void _checkForDuplicateModelName(EOModel _model, String _newName) {    EOModel entity = getModelNamed(_newName);    if (entity != null && entity != _model) {      throw new IllegalArgumentException("There is already an entity named '" + _newName + "' in " + this + ".");    }  }