code: @InterfaceAudience.Public
      public static boolean isValidDatabaseName(String databaseName) {
          if (databaseName.length() > 0 && databaseName.length() < 240 &&
                  containsOnlyLegalCharacters(databaseName) &&
                  Character.isLowerCase(databaseName.charAt(0))) {
              return true;
          }
          return databaseName.equals(Replication.REPLICATOR_DATABASE_NAME);
      }
docs: Returns YES if the given name is a valid database name.
  (Only the characters in "abcdefghijklmnopqrstuvwxyz0123456789_$()+-/" are allowed.)