code: public void marshallAsAttribute(final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException {
          getMarshaller().marshallAsAttribute(this, resourceModel, marshallDefault, writer);
      }
docs: Marshalls the value from the given {@code resourceModel} as an xml attribute, if it
  {@link #isMarshallable(org.jboss.dmr.ModelNode, boolean) is marshallable}.
  @param resourceModel the model, a non-null node of {@link org.jboss.dmr.ModelType#OBJECT}.
  @param marshallDefault {@code true} if the value should be marshalled even if it matches the default value
  @param writer stream writer to use for writing the attribute
  @throws javax.xml.stream.XMLStreamException if {@code writer} throws an exception