patchOp.get(OP).set("patch");
patchOp.get("content").add().get("input-stream-index").set(0);
if (context.overrideConflict) {
patchOp.get("override-all").set(true);
}
context.operation.setValue(patchOp.toJSONString());
// only one handler please!
if (patchAppliedHandler == null) {
patchAppliedHandler = new PatchAppliedHandler();
context.form.addSubmitCompleteHandler(patchAppliedHandler);