boolean translateItem = translateFileName != null;
TranslatingRecommender translatingRecommender = null;
if (translateUser || translateItem) {
IDMigrator userTranslator = translateUser ? new OneWayMigrator() : null;
MemoryIDMigrator itemTranslator = translateItem ? new MemoryIDMigrator() : null;
translatingRecommender = new TranslatingClientRecommender(recommender, userTranslator, itemTranslator);
if (translateFileName != null && !"oneWay".equals(translateFileName)) {
File translateFile = new File(translateFileName);
translatingRecommender.addItemIDs(translateFile);
}