}
public static void exportToFile(List<MovieInfo> result, String fileName) throws JRException, IOException, InterruptedException {
HashMap<String, Object> params = new HashMap<String, Object>();
Sort s = getSortType();
if (s != null) params.put("sorted", ResourceManager.getResourceValue(s.designation()));
params.put("moviesNum", result.size());
result = Sorter.sort(result, s);
List<HashMap<String, Object>> data = new ArrayList<HashMap<String, Object>>();
for (int i = 0; i < result.size(); i++) {
MovieInfo info = result.get(i);