public static Set wrapInSet(Object obj){
  Set set=null;
  if (obj != null) {
    set=new HashSet(2);
    set.add(obj);
  }
 else {
    set=Collections.EMPTY_SET;
  }
  return set;
}

public static Set wrapInSet ( Object obj ) { Set set = null ; if ( obj != null ) { set = new HashSet ( 2 ) ; set . add ( obj ) ; } else { set = Collections . EMPTY_SET ; } return set ; }
returns a hash set containing a given object .
