code: public void serializeParameter(String name, Map< ? , ? > map, boolean type, ContentHandler contentHandler)
      {
          Attributes attributes;
  
          if (type) {
              AttributesImpl attributesImpl = new AttributesImpl();
              attributesImpl.addAttribute(null, null, "type", null, "stringmap");
              attributes = attributesImpl;
          } else {
              attributes = EMPTY_ATTRIBUTES;
          }
  
          startElement(name, attributes, contentHandler);
          for (Map.Entry< ? , ? > entry : map.entrySet()) {
              if (entry.getValue() != null && entry.getKey() != null) {
                  serializeParameter(entry.getKey().toString(), entry.getValue().toString(), null, contentHandler);
              }
          }
          endElement(name, contentHandler);
      }
docs: TODO: support more than strings