private static final Set<String> encode(String src){
  if (src == null || src.length() == 0)   return new HashSet<String>();
  StringTokenizer tokenizer=new StringTokenizer(src,";");
  int size=tokenizer.countTokens();
  Set<String> set=new HashSet<String>();
  for (int i=0; i < size; i++)   set.add(tokenizer.nextToken());
  return set;
}

private static final Set < String > encode ( String src ) { if ( src == null || src . length ( ) == 0 ) return new HashSet < String > ( ) ; StringTokenizer tokenizer = new StringTokenizer ( src , ";" ) ; int size = tokenizer . countTokens ( ) ; Set < String > set = new HashSet < String > ( ) ; for ( int i = 0 ; i < size ; i ++ ) set . add ( tokenizer . nextToken ( ) ) ; return set ; }
splits the string into a set
