public static Set<String> commaDelimitedListToSet(String str){
  Set<String> set=new TreeSet<String>();
  String[] tokens=commaDelimitedListToStringArray(str);
  for (  String token : tokens) {
    set.add(token);
  }
  return set;
}

public static Set < String > commaDelimitedListToSet ( String str ) { Set < String > set = new TreeSet < String > ( ) ; String [ ] tokens = commaDelimitedListToStringArray ( str ) ; for ( String token : tokens ) { set . add ( token ) ; } return set ; }
convenience method to convert a csv string list to a set . note that this will suppress duplicates .
