for (int i = 0, n = docOps.size(); i < n; i++) {
DocOp clientDocOp = docOps.get(i);
if (bridgeDocOp != null) {
try {
OperationPair transformedPair =
Transformer.transform(ServerDocOpFactory.INSTANCE, clientDocOp, bridgeDocOp);
clientDocOp = transformedPair.clientOp();
bridgeDocOp = transformedPair.serverOp();
} catch (TransformException e) {
throw newExceptionForConsumeWithoutLocking("Could not transform doc op\ni: " + i + "\n",
e,
intendedCcRevision,
bridgeBeginIndex,