NodeBuilder builder = root.builder();
NodeState before = builder.getNodeState();
builder.child(":hidden");
NodeState after = builder.getNodeState();
hook.processCommit(before, after, CommitInfo.EMPTY);
before = after;
builder.child(":hidden").setProperty("prop", "value");
after = builder.getNodeState();
hook.processCommit(before, after, CommitInfo.EMPTY);