private static void add(Map<String,List<Object>> map,String key,Object value){
  List<Object> values=map.get(key);
  if (values == null) {
    map.put(key,values=new ArrayList<Object>(2));
  }
  values.add(value);
}

private static void add ( Map < String , List < Object > > map , String key , Object value ) { List < Object > values = map . get ( key ) ; if ( values == null ) { map . put ( key , values = new ArrayList < Object > ( 2 ) ) ; } values . add ( value ) ; }
adds the given value to the list in the map if it exist for the specified key , and to a new list added to the map if it does not exist yet
