docs: void writeInterfaces(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException {
          writer.writeStartElement(Element.INTERFACES.getLocalName());
          final Set<String> interfaces = modelNode.keys();
          for (String ifaceName : interfaces) {
              final ModelNode iface = modelNode.get(ifaceName);
              writer.writeStartElement(Element.INTERFACE.getLocalName());
              writeAttribute(writer, Attribute.NAME, ifaceName);
              // <any-* /> is just handled at the root
              if (iface.get(Element.ANY_ADDRESS.getLocalName()).asBoolean(false)) {
                  writer.writeEmptyElement(Element.ANY_ADDRESS.getLocalName());
              } else {
                  // Write the other criteria elements
                  writeInterfaceCriteria(writer, iface, false);
              }
              writer.writeEndElement();
          }
          writer.writeEndElement();
      }