Injector injector = getInjector();
final String directory = injector.getInstance(Key.get(String.class, Names.named("eventhub.directory")));
final ShardedEventIndex shardedEventIndex = injector.getInstance(ShardedEventIndex.class);
final DatedEventIndex datedEventIndex = injector.getInstance(DatedEventIndex.class);
final PropertiesIndex propertiesIndex = injector.getInstance(PropertiesIndex.class);
final UserEventIndex userEventIndex = injector.getInstance(UserEventIndex.class);
final EventStorage eventStorage = injector.getInstance(JournalEventStorage.class);
final UserStorage userStorage = injector.getInstance(JournalUserStorage.class);
final EventHub eventHub = new EventHub(directory, shardedEventIndex, datedEventIndex,