NodeState base = builder.getNodeState();
NodeStore store = new MemoryNodeStore(base);
Root root = new SystemRoot(store,
new EditorHook(new CompositeEditorProvider(
new NamespaceEditorProvider(),
new TypeEditorProvider())));
if (registerCugNodeTypes(root)) {
NodeState target = store.getRoot();
target.compareAgainstBaseState(base, new ApplyDiff(builder));
}