protected boolean isUniqueName(String name, String databaseCheck) { boolean inDatabase = false; if (databaseCheck != null) { Method dbCheckMethod = getDatabaseCheckMethod(databaseCheck); if (dbCheckMethod != null) inDatabase = isInDatabase(name, dbCheckMethod); } return !contains(name) && !inDatabase;
protected boolean isUniqueName(String name) { return !contains(name) && !isInDatabase(name);
  protected boolean isUniqueName(String name, String databaseCheck) {    boolean inDatabase = false;    if (databaseCheck != null) {      Method dbCheckMethod = getDatabaseCheckMethod(databaseCheck);      if (dbCheckMethod != null)        inDatabase = isInDatabase(name, dbCheckMethod);    }    return !contains(name) && !inDatabase;  }