code: public void write(XMLStreamWriter writer, AttributeDefinition<?> def, Enum<?> name) throws XMLStreamException {
        write(writer, def, name.toString());
     }
docs: Writer a single attribute to the specified {@link XMLStreamWriter} using the supplied name
  @param writer the writer
  @param def the Attribute definition
  @param name the XML tag name for the attribute
  @throws XMLStreamException