code: protected void writeDocumentTrailer(XMLEventWriter writer)
              throws JournalException {
          try {
              putEndDocument(writer);
          } catch (XMLStreamException e) {
              throw new JournalException(e);
          }
      }
docs: Subclasses should call this method to close a Journal file.