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

public static Map < String , Set < String > > toAvPairMap ( final Set < String > names , final String value ) { if ( value == null ) { return Collections . EMPTY_MAP ; } if ( names == null || names . isEmpty ( ) ) { return new HashMap ( ) ; } final Map < String , Set < String > > map = new HashMap < String , Set < String > > ( names . size ( ) ) ; final Set < String > set = new HashSet < String > ( 1 ) ; set . add ( value ) ; for ( final String name : names ) { map . put ( name , set ) ; } return map ; }
creates a hash map , of names mapped to the provided value . if there is no value , an empty map is returned .
