try {
WaveletDeltaRecord applicationResult = transformAndApplyRemoteDelta(appliedDelta);
long opsApplied = applicationResult.getResultingVersion().getVersion()
- expectedVersion.getVersion();
if (opsApplied != appliedDelta.getMessage().getOperationsApplied()) {
throw new OperationException("Operations applied here do not match the authoritative"
+ " server claim (got " + opsApplied + ", expected "
+ appliedDelta.getMessage().getOperationsApplied() + ".");
}
// Add transformed result to return list.
resultingDeltas.add(applicationResult);