private void modifyContent() throws Exception {
NodeStoreBranch branch = store.branch();
NodeBuilder builder = branch.getHead().builder();
builder.child("a").setProperty("foo", "bar");
branch.setRoot(builder.getNodeState());
branch.merge(EmptyHook.INSTANCE, PostCommitHook.EMPTY);
}
private void readTree(NodeState root) {
for (ChildNodeEntry cne : root.getChildNodeEntries()) {
readTree(cne.getNodeState());