import com.persistit.exception.PersistitInterruptedException;
public class AccumulatorAdapter {
public static long getSnapshot(AccumInfo accumInfo, Tree tree) throws PersistitInterruptedException {
Accumulator accumulator = getAccumulator(accumInfo, tree);
return accumulator.getSnapshotValue();
}