code: public static synchronized void updateTLDOverride(DomainValidator.ArrayType table, String [] tlds) {
          if (inUse) {
              throw new IllegalStateException("Can only invoke this method before calling getInstance");
          }
          String [] copy = new String[tlds.length];
          // Comparisons are always done with lower-case entries
          for (int i = 0; i < tlds.length; i++) {
              copy[i] = tlds[i].toLowerCase(Locale.ENGLISH);
          }
          Arrays.sort(copy);
          switch(table) {
              case COUNTRY_CODE_MINUS:
                  countryCodeTLDsMinus = copy;
                  break;
              case COUNTRY_CODE_PLUS:
                  countryCodeTLDsPlus = copy;
                  break;
              case GENERIC_MINUS:
                  genericTLDsMinus = copy;
                  break;
              case GENERIC_PLUS:
                  genericTLDsPlus = copy;
                  break;
              case COUNTRY_CODE_RO:
              case GENERIC_RO:
              case INFRASTRUCTURE_RO:
              case LOCAL_RO:
                  throw new IllegalArgumentException("Cannot update the table: " + table);
              default:
                  throw new IllegalArgumentException("Unexpected enum value: " + table);
          }
      }
docs: Update one of the TLD override arrays.
  This must only be done at program startup, before any instances are accessed using getInstance.
  <p>
  For example:
  <p>
  {@code DomainValidator.updateTLDOverride(ArrayType.GENERIC_PLUS, new String[]{"apache"})}
  <p>
  To clear an override array, provide an empty array.
  
  @param table the table to update, see {@link DomainValidator.ArrayType}
  Must be one of the following
  <ul>
  <li>COUNTRY_CODE_MINUS</li>
  <li>COUNTRY_CODE_PLUS</li>
  <li>GENERIC_MINUS</li>
  <li>GENERIC_PLUS</li>
  </ul>
  @param tlds the array of TLDs, must not be null
  @throws IllegalStateException if the method is called after getInstance
  @throws IllegalArgumentException if one of the read-only tables is requested
  @since 1.5.0