Preconditions.checkArgument(lastReadVersion >= intermediateVersion
|| lastReadVersion == 0 || lastReadVersion >= document.getLastModifiedVersion(),
"intermediate wavelet %s is newer (@%s) than last read version %s of doc %s",
waveletId, intermediateVersion, lastReadVersion, documentId);
DocOp state = document.getContent().asOperation();
docDiff.addOperation(documentId, 0, state);
documentDiffMap.put(documentId, docDiff);
}