code: @SuppressWarnings({"unchecked", "rawtypes"})
      private void populateMap(Map map, Node node) {
          Map.Entry entry = getMapEntry(node);
          if (entry != null) {
              map.put(entry.getKey(), entry.getValue());
          }
      }
docs: Given the node populates the map
  
  @param map
  the map
  @param node
  the node