docs: public Record nextRecord() throws NoSuchElementException, JournalException {
          if (!hasNext()) {
              String msg = "No current record.";
              throw new NoSuchElementException(msg);
          }
          close(lastRecord);
          lastRecord = record;
          record = null;
  
          return lastRecord;
      }