docs: public void marshallAsElement(final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException {
          if (getMarshaller().isMarshallableAsElement()) {
              getMarshaller().marshallAsElement(this, resourceModel, marshallDefault, writer);
          } else {
              throw ControllerLogger.ROOT_LOGGER.couldNotMarshalAttributeAsElement(getName());
          }
      }