public static byte[] exportToPdf(String key, Map parameters, ResourceBundle bundle, Collection dataSource) throws JRException {
public static boolean exportToPdf(String key, Map parameters, ResourceBundle bundle, Collection dataSource, String destination) {
    public static byte[] exportToPdf(String key, Map parameters, ResourceBundle bundle,            Collection dataSource) throws JRException {        try {            JasperPrint jasperPrint = getReport(key, parameters, bundle, dataSource);            if (jasperPrint != null) {                return JasperExportManager.exportReportToPdf(jasperPrint);            }        } catch (JRException e) {            throw e;        }        return null;    }