private Map toAvPairMap(Set<String> names,String token){
  if (token == null) {
    return Collections.EMPTY_MAP;
  }
  Map map=new HashMap();
  Set<String> set=new HashSet<String>();
  set.add(token);
  if (names == null || names.isEmpty()) {
    return map;
  }
  for (  final Object name : names) {
    map.put(name,set);
  }
  return map;
}

private Map toAvPairMap ( Set < String > names , String token ) { if ( token == null ) { return Collections . EMPTY_MAP ; } Map map = new HashMap ( ) ; Set < String > set = new HashSet < String > ( ) ; set . add ( token ) ; if ( names == null || names . isEmpty ( ) ) { return map ; } for ( final Object name : names ) { map . put ( name , set ) ; } return map ; }
converts a set to a map , keys are the elements in the set , value is the token . user naming attribute is always added as one of the key .
