int op2Index = 0;
while (op1Index < op1.size()) {
op1.applyComponent(op1Index++, target);
while (target.isPostTarget()) {
if (op2Index >= op2.size()) {
throw new OperationException("Document size mismatch: "
+ "op1 resulting length=" + DocOpUtil.resultingDocumentLength(op1)
+ ", op2 initial length=" + DocOpUtil.initialDocumentLength(op2));
}
op2.applyComponent(op2Index++, target);
}