private static void initializeSearch(Injector injector, WaveBus waveBus)
throws WaveletStateException, WaveServerException {
PerUserWaveViewDistpatcher waveViewDistpatcher =
injector.getInstance(PerUserWaveViewDistpatcher.class);
PerUserWaveViewBus.Listener listener = injector.getInstance(PerUserWaveViewBus.Listener.class);
waveViewDistpatcher.addListener(listener);
waveBus.subscribe(waveViewDistpatcher);
WaveIndexer waveIndexer = injector.getInstance(WaveIndexer.class);
waveIndexer.remakeIndex();
}