code: public UriMappingResolver addDomains(String... values) {
          if (values.length % 2 == 1) {
              throw new IllegalArgumentException
                      ("Expected even number of arguments");
          }
          for (int i = 0; i < values.length; i += 2) {
              addDomain(values[i], values[i+1]);
          }
          return this;
      }
docs: Calls {@link #addDomain(java.lang.String, java.lang.String)} with
  pairs from the argument array.
  @param values
  @throws IllegalArgumentException if length of resources is not even
  @return this