private VersionUpdateOp doInternalApply(WaveletData wavelet) {
HashedVersion oldHashedVersion = wavelet.getHashedVersion();
if (docId != null) {
// Update blip version.
BlipData blip = wavelet.getDocument(docId);
long newWaveletVersion = wavelet.getVersion() + context.getVersionIncrement();
long newDocVersion = useFixedDocInfo ? docVersion : newWaveletVersion;
long oldDocVersion = blip.setLastModifiedVersion(newDocVersion);
return new VersionUpdateOp(context.getCreator(), -context.getVersionIncrement(),
oldHashedVersion, docId, oldDocVersion, true);
} else {
return new VersionUpdateOp(context.getCreator(), -context.getVersionIncrement(),