code: public void write(EnumType type) throws XMLStreamException {
  
          LOG.debug("Writing type {} of type {}", type.getName(), type.getMetaType());
  
          xmlWriter.writeStartElement(ENUM_TYPE);
          xmlWriter.writeAttribute(NAME, type.getName());
          for (EnumMember member : type.getMembers()) {
              xmlWriter.writeStartElement(ENUM_MEMBER);
              xmlWriter.writeAttribute(NAME, member.getName());
              xmlWriter.writeEndElement();
          }
          xmlWriter.writeEndElement();
      }
docs: Write an {@code <EnumType>} element for the given {@code EnumType}.
  
  @param type The given complex type. It can not be {@code null}.
  @throws javax.xml.stream.XMLStreamException If unable to write to strem