code: public static Set<String> commaDelimitedListToSet(String str) {
          Set<String> set = new TreeSet<String>();
          String[] tokens = commaDelimitedListToStringArray(str);
          Collections.addAll(set, tokens);
          return set;
      }
docs: Convenience method to convert a CSV string list to a set. Note that this
  will suppress duplicates.
  
  @param str the input String
  @return a Set of String entries in the list