code: private void writeStatus(Result.Status status) throws XMLStreamException {
          xmlStreamWriter.writeStartElement("status");
          xmlStreamWriter.writeCharacters(status.name().toLowerCase());
          xmlStreamWriter.writeEndElement();
      }
docs: Write the status of the current result.
  
  @throws XMLStreamException
  If a problem occurs.