code: public void marshallAsAttribute(final AttributeDefinition attribute,final ModelNode resourceModel, final boolean marshallDefault, final XMLStreamWriter writer) throws XMLStreamException{
          throw ControllerLogger.ROOT_LOGGER.couldNotMarshalAttributeAsAttribute(attribute.getName());
      }
docs: Marshalls the value from the given {@code resourceModel} as an xml element, if it
  {@link #isMarshallable(AttributeDefinition, org.jboss.dmr.ModelNode, boolean) is marshallable}.
  
  @param attribute - attribute for which marshaling is being done
  @param resourceModel the model, a non-null node of {@link org.jboss.dmr.ModelType#OBJECT}.
  @param writer        stream writer to use for writing the attribute
  @throws javax.xml.stream.XMLStreamException
  if thrown by {@code writer}