code: private Map<String, String> mergeMaps(Map<String, String> map1, Map<String, String> map2) {
          Iterator<String> map1Names = map1.keySet().iterator();
          while (map1Names.hasNext()) {
              String name = map1Names.next();
              map2.put(name, map1.get(name));
          }
          return map2;
      }
docs: /*
  Adds all mappings from map1 into map2. In the case of a conflict the
  values from map1 will win.