code: protected void writeJournalEntry(CreatorJournalEntry journalEntry,
                                       XMLEventWriter writer)
              throws JournalException {
          try {
              writeJournaEntryStartTag(journalEntry, writer);
  
              new ContextXmlWriter().writeContext(journalEntry.getContext(),
                                                  writer);
  
              writeArguments(journalEntry.getArgumentsMap(), writer);
  
              putEndTag(writer, QNAME_TAG_JOURNAL_ENTRY);
              writer.flush();
          } catch (XMLStreamException e) {
              throw new JournalException(e);
          }
      }
docs: Format a JournalEntry object and write a JournalEntry tag to the journal.