static Map addMapToMap(Map mapToAdd,Map toMap){
  if ((mapToAdd != null) && (toMap != null)) {
    Set keySet=mapToAdd.keySet();
    Iterator keyIter=keySet.iterator();
    while (keyIter.hasNext()) {
      String key=(String)keyIter.next();
      Set values=(Set)mapToAdd.get(key);
      addElementToMap(key,values,toMap);
    }
  }
  return toMap;
}

static Map addMapToMap ( Map mapToAdd , Map toMap ) { if ( ( mapToAdd != null ) && ( toMap != null ) ) { Set keySet = mapToAdd . keySet ( ) ; Iterator keyIter = keySet . iterator ( ) ; while ( keyIter . hasNext ( ) ) { String key = ( String ) keyIter . next ( ) ; Set values = ( Set ) mapToAdd . get ( key ) ; addElementToMap ( key , values , toMap ) ; } } return toMap ; }
adds a map to another map
