server = provider.getSolrServer();
configuration = provider.getConfiguration();
hook = new EditorHook(new IndexUpdateProvider(
new SolrIndexEditorProvider(provider, provider)));
Oak oak = new Oak().with(new InitialContent())
.with(new OpenSecurityProvider())
.with(new SolrIndexInitializer())
.with(new SolrQueryIndexProvider(provider, provider))
.with(new SolrIndexEditorProvider(provider, provider));
repository = oak
.createContentRepository();