code: private String peekAtJournalEntryIdentifier(JournalInputFile file)
              throws XMLStreamException {
          String fileName = file.getFilename();
          XMLEvent event = file.getReader().peek();
  
          String timeString = "unknown";
          if (event.isStartElement()) {
              StartElement start = event.asStartElement();
              Attribute timeStamp =
                      start.getAttributeByName(QNAME_ATTR_TIMESTAMP);
              if (timeStamp != null) {
                  timeString = timeStamp.getValue();
              }
          }
  
          return "file='" + fileName + "', entry='" + timeString + "'";
      }
docs: Create an identifier string for the Journal Entry, so we can easily
  connect the entries in the Recovery Logger with those in the Journal. Call
  this before calling
  {@link JournalReader#readJournalEntry(XMLEventReader)}, because the
  reader is positioned at the beginning of the JournalEntry, so a peek()
  will give us the start tag, with the info we need.