Injector injector = Guice.createInjector(Modules.override(
new DmaIdListModule(),
new DatedEventIndexModule(),
new ShardedEventIndexModule(),
new PropertiesIndexModule(),
new UserEventIndexModule(),
new EventStorageModule(),
new UserStorageModule(),
new EventHubModule(properties)).with(new Module()));
final EventHubHandler eventHubHandler = injector.getInstance(EventHubHandler.class);
int port = injector.getInstance(Key.get(Integer.class, Names.named("eventhubhandler.port")));