@Nonnull RepositoryInitializer initializer,
@Nonnull IndexEditorProvider indexEditor) {
try {
NodeBuilder builder = store.getRoot().builder();
initializer.initialize(builder);
CommitHook hook = new EditorHook(new IndexUpdateProvider(indexEditor));
CommitInfo info = new CommitInfo("OakInitializer", null);
store.merge(builder, hook, info);
} catch (CommitFailedException e) {
throw new RuntimeException(e);
}