code: public Snapshot createSnapshot(long index) {
      SnapshotDescriptor descriptor = SnapshotDescriptor.builder()
        .withIndex(index)
        .withTimestamp(System.currentTimeMillis())
        .build();
      return createSnapshot(descriptor);
    }
docs: Creates a new snapshot.
  
  @param index The snapshot index.
  @return The snapshot.