producerFromFriends.setTwitterSearch(tws);
producerFromFriends.setUserSearch(userSearch);
producerFromFriends.setUncaughtExceptionHandler(excHandler);
// feeding consumer from UI
RMIServer rmiServer = injector.getInstance(RMIServer.class);
rmiServer.setQueue(twConsumer.register("producer-rmi", queueCapacity, 20));
Thread rmiServerThread = rmiServer.createThread();
// configure tweet index to call UrlResolver after feeding of a tweet
tweetSearch.setRemoveOlderThanDays(cfg.getTweetSearchRemoveDays());
tweetSearch.setBatchSize(cfg.getTweetSearchBatch());