docs: private synchronized void resetCurrentSegment() {
      JournalSegment<E> lastSegment = getLastSegment();
      if (lastSegment != null) {
        currentSegment = lastSegment;
      } else {
        JournalSegmentDescriptor descriptor = JournalSegmentDescriptor.builder()
            .withId(1)
            .withIndex(1)
            .withMaxSegmentSize(maxSegmentSize)
            .withMaxEntries(maxEntriesPerSegment)
            .build();
  
        currentSegment = createSegment(descriptor);
  
        segments.put(1L, currentSegment);
      }
    }