docs: public void serialize(OutputStream os, GlobalConfiguration globalConfiguration, Map<String, Configuration> configurations) throws XMLStreamException {
        BufferedOutputStream output = new BufferedOutputStream(os);
        XMLStreamWriter subWriter = XMLOutputFactory.newInstance().createXMLStreamWriter(output);
        XMLExtendedStreamWriter writer = new XMLExtendedStreamWriterImpl(subWriter);
        serialize(writer, globalConfiguration, configurations);
        subWriter.close();
     }