code: private void open() {
      for (Snapshot snapshot : loadSnapshots()) {
        snapshots.put(snapshot.index(), snapshot);
      }
  
      if (!snapshots.isEmpty()) {
        currentSnapshot = snapshots.lastEntry().getValue();
      }
    }
docs: Opens the snapshot manager.