code: public void serialize(OutputStream os, String name, Configuration configuration) throws XMLStreamException {
        serialize(os, null, Collections.singletonMap(name, configuration));
     }
docs: Serializes a single configuration to an OutputStream
  @param os
  @param name
  @param configuration