protected Set convertListToSet(List list){
  Set s=new HashSet();
  Iterator it=list.iterator();
  while (it.hasNext()) {
    s.add(it.next());
  }
  return s;
}

protected Set convertListToSet ( List list ) { Set s = new HashSet ( ) ; Iterator it = list . iterator ( ) ; while ( it . hasNext ( ) ) { s . add ( it . next ( ) ) ; } return s ; }
converts the list to set .
