doc.consume(initialDoc.asOperation());
for (int j = 0; j < 20; j++) {
System.err.println("i=" + i + ", j=" + j);
System.err.println("old: " + DocOpUtil.toXmlString(doc.asOperation()));
System.err.println("old: " + DocOpUtil.toConciseString(doc.asOperation()));
DocOp op = generate(r, p, doc);
System.err.println("op: " + DocOpUtil.toConciseString(op));
doc.consume(op);
System.err.println("new: " + DocOpUtil.toConciseString(doc.asOperation()));
System.err.println("new: " + DocOpUtil.toXmlString(doc.asOperation()));
if (!DocOpValidator.validate(null, DocumentSchema.NO_SCHEMA_CONSTRAINTS,