HistoryCache historyCache = new HistoryCache();
ServiceLoader serviceLoader = new ServiceLoader(ApiServiceFactory.INSTANCE);
SearchResultIndex searchIndex = new SearchResultIndex();
// Set up the keyword completion suggestion oracle.
KeywordCompletionSuggestOracle searchKeywords = new KeywordCompletionSuggestOracle();
searchIndex.setKeywordCallback(searchKeywords);
// Set up the URL routing and responder.
HistoryWrapper wrapper = new HistoryWrapperImpl();
URLManipulator manipulator = new URLManipulator(wrapper);