Moving JasperPrint gereration to its own method