injector = injector.createChildInjector(federationSettings);
}
Module serverModule = injector.getInstance(ServerModule.class);
Module federationModule = buildFederationModule(injector, enableFederation);
Module robotApiModule = new RobotApiModule();
PersistenceModule persistenceModule = injector.getInstance(PersistenceModule.class);
Module searchModule = injector.getInstance(SearchModule.class);
Module profileFetcherModule = injector.getInstance(ProfileFetcherModule.class);
injector = injector.createChildInjector(serverModule, persistenceModule, robotApiModule,
federationModule, searchModule, profileFetcherModule);