RescorerProvider rescorerProvider = getRescorerProvider();
try {
int howMany = getHowMany(request);
Iterable<RecommendedItem> similar;
if (rescorerProvider == null) {
similar = recommender.mostSimilarItems(itemIDSet.toArray(), howMany);
} else {
Rescorer<LongPair> rescorer =
rescorerProvider.getMostSimilarItemsRescorer(recommender, getRescorerParams(request));
similar = recommender.mostSimilarItems(itemIDSet.toArray(),
howMany,