public static void run(Module coreSettings) throws PersistenceException,
ConfigurationException, WaveServerException {
Injector injector = Guice.createInjector(coreSettings);
Module profilingModule = injector.getInstance(StatModule.class);
ExecutorsModule executorsModule = injector.getInstance(ExecutorsModule.class);
injector = injector.createChildInjector(profilingModule, executorsModule);
boolean enableFederation = injector.getInstance(Key.get(Boolean.class,
Names.named(CoreSettings.ENABLE_FEDERATION)));
if (enableFederation) {