docs: public void write(XMLStreamWriter writer, String xmlElementName) throws XMLStreamException {
        if (isModified()) {
           writer.writeStartElement(xmlElementName);
           write(writer);
           writer.writeEndElement();
        }
     }