docs: public static <T> void writeTo(XMLStreamWriter writer, T message, Schema<T> schema)
              throws IOException, XMLStreamException, XmlOutputException
      {
          writer.writeStartElement(schema.messageName());
  
          schema.writeTo(new XmlOutput(writer, schema), message);
  
          writer.writeEndElement();
      }