context.getDeltas(waveletName, participant, fromVersion, toVersion, new Receiver<TransformedWaveletDelta>() {
@Override
public boolean put(TransformedWaveletDelta delta) {
ProtocolWaveletDelta protoDelta = CoreWaveletOperationSerializer.serialize(delta);
byte[] bytes = protoDelta.toByteArray();
deltaBytes.add(bytes);
version.set(delta.getResultingVersion());
return length.addAndGet(bytes.length) < GET_HISTORY_BYTES_LENGTH_LIMIT;
}
});