logger.info("Loading recommender engine from {}", file);
FileInputStream input = new FileInputStream(file);
try {
CompressionMode effComp = compressionMode.getEffectiveCompressionMode(file.getName());
logger.info("using {} compression", effComp);
return loadInternal(effComp.wrapInput(input));
} finally {
input.close();
}
}