static Map addElementToMap(String key,Set values,Map toMap){
  if ((key != null) && (toMap != null)) {
    toMap.put(key,values);
  }
  return toMap;
}

static Map addElementToMap ( String key , Set values , Map toMap ) { if ( ( key != null ) && ( toMap != null ) ) { toMap . put ( key , values ) ; } return toMap ; }
adds a key / value pair to a map
