code: public <T> Set<T> toSet(Class<T> classOfT, String pattern) {
          return (Set<T>) toCollection(HashSet.class, classOfT, pattern);
      }
docs: Converts a string value(s) to a Set of the target type. You may optionally specify
  a string pattern to assist in the type conversion.
  
  @param classOfT
  @param pattern  optional pattern for interpreting the underlying request
  string value. (used for date & time conversions)
  @return a set of the values