<BUG>root = wspInit.initialize(root, workspaceName, indexProvider, commitHook);
</BUG>
}
<BUG>branch.setRoot(root);</BUG>
try {
<BUG>branch.merge(new EditorHook(new IndexUpdateProvider(indexEditor)), PostCommitHook.EMPTY);
</BUG>
} catch (CommitFailedException e) {
throw new RuntimeException(e);
}

public static void initialize(@Nonnull Iterable<WorkspaceInitializer> initializer,
@Nonnull NodeStore store,
@Nonnull String workspaceName,
@Nonnull IndexEditorProvider indexEditor,
@Nonnull QueryIndexProvider indexProvider,
@Nonnull CommitHook commitHook) {
NodeBuilder builder = store.getRoot().builder();
for (WorkspaceInitializer wspInit : initializer) {
wspInit.initialize(builder, workspaceName, indexProvider, commitHook);
}
try {
store.merge(builder, new EditorHook(new IndexUpdateProvider(indexEditor)), PostCommitHook.EMPTY);
} catch (CommitFailedException e) {
throw new RuntimeException(e);
