ImmutableList<WaveletDeltaRecord> deltas = readAll(deltasAccess, null);
WaveletData snapshot = WaveletDataUtil.buildWaveletFromDeltas(deltasAccess.getWaveletName(),
Iterators.transform(deltas.iterator(), TRANSFORMED));
return new DeltaStoreBasedWaveletState(deltasAccess, deltas, snapshot, persistExecutor);
} catch (IOException e) {
throw new PersistenceException("Failed to read stored deltas", e);
} catch (OperationException e) {
throw new PersistenceException("Failed to compose stored deltas", e);
}
}
}