// This MUST happen first, or bindings will fail if federation is enabled.
settingsInjector = settingsInjector.createChildInjector(federationSettings);
}
Module federationModule = buildFederationModule(settingsInjector, enableFederation);
PersistenceModule persistenceModule = settingsInjector.getInstance(PersistenceModule.class);
Module searchModule = settingsInjector.getInstance(SearchModule.class);
Injector injector =
settingsInjector.createChildInjector(new ServerModule(enableFederation, listenerCount,
waveletLoadCount, deltaPersistCount, storageContinuationCount, lookupCount),
new RobotApiModule(), federationModule, persistenceModule, searchModule);