this.persistentRegistry.setContext(this.context);
this.internalWorkerContext = this.context.with(new InternalSecurityContext(INTERNAL_WORKER_USERNAME));
// Create clustering service and event bus
this.changeDispatchingQueue = this.context().getCachedTreadPool("modeshape-event-dispatcher");
ChangeBus localBus = new RepositoryChangeBus(name(), changeDispatchingQueue);
this.changeBus = clusteringService != null ? new ClusteredChangeBus(localBus, clusteringService) : localBus;
this.changeBus.start();
// Set up the event journal
RepositoryConfiguration.Journaling journaling = config.getJournaling();