// Register observer last to prevent sending events while initialising
for (Observer observer : observers) {
regs.add(registerObserver(whiteboard, observer));
}
RepositoryManager repositoryManager = new RepositoryManager(whiteboard);
regs.add(registerMBean(whiteboard, RepositoryManagementMBean.class, repositoryManager,
RepositoryManagementMBean.TYPE, repositoryManager.getName()));
return new ContentRepositoryImpl(
store,
CompositeHook.compose(commitHooks),
defaultWorkspaceName,