code: public void applyAndJournal(Supplier<JournalContext> context, AddSyncPointEntry entry) {
      try {
        apply(entry);
        context.get().append(Journal.JournalEntry.newBuilder().setAddSyncPoint(entry).build());
      } catch (Throwable t) {
        ProcessUtils.fatalError(LOG, t, "Failed to apply %s", entry);
        throw t; // fatalError will usually system.exit
      }
    }
docs: Apply AddSyncPoint entry and journal the entry.
  @param context journal context
  @param entry addSyncPoint entry