NodeState before = builder.getNodeState();
builder.child("newnode").setProperty("prop", "val");
NodeState after = builder.getNodeState();
EditorProvider provider = new EditorProvider() {
@Override
public Editor getRootEditor(NodeState before, NodeState after,
NodeBuilder builder) {
return new SolrIndexHook("/", builder, server);
}