public Map<String,String> parse(Set<String> entries){
  Map<String,String> result=new HashMap<String,String>();
  if (entries != null) {
    for (    String entry : entries) {
      Pair<String,String> pair=parse(entry);
      if (pair != null) {
        result.put(pair.getFirst(),pair.getSecond());
      }
    }
  }
  return result;
}

public Map < String , String > parse ( Set < String > entries ) { Map < String , String > result = new HashMap < String , String > ( ) ; if ( entries != null ) { for ( String entry : entries ) { Pair < String , String > pair = parse ( entry ) ; if ( pair != null ) { result . put ( pair . getFirst ( ) , pair . getSecond ( ) ) ; } } } return result ; }
pass in a set of name = value pairs to this function and get back a hashmap of values , keyed by name .
