public void process(Long itemID, long count) throws ExecutionException {
Rescorer<LongPair> rescorer =
rescorerProvider == null ? null : rescorerProvider.getMostSimilarItemsRescorer(recommender);
Iterable<RecommendedItem> similar;
try {
similar = recommender.mostSimilarItems(new long[]{itemID}, howMany, rescorer);
} catch (TasteException te) {
throw new ExecutionException(te);
}
String outLine = formatOutLine(itemID, similar);
synchronized (out) {