protected void exposeLocalizationContext(Map model, HttpServletRequest request) {
Locale locale = RequestContextUtils.getLocale(request);
model.put(JRParameter.REPORT_LOCALE, locale);
JasperReport report = getReport();
if (report == null || report.getResourceBundle() == null) {
ResourceBundle bundle = new MessageSourceResourceBundle(getApplicationContext(), locale);
model.put(JRParameter.REPORT_RESOURCE_BUNDLE, bundle);
}
}