public byte[] xmlToPDF(String template, String xml) throws Exception {
public String xmlToPDF(String template, String xml) throws Exception { System.out.println("PDFCreatorBean::xmlToPDF(" + template + ", xml) invoked.");
    public byte[] xmlToPDF(String template, String xml) throws Exception {            PDFCreator pdf= new PDFCreator();        JarTemplateLoader loader= new JarTemplateLoader();                String xslt= loader.templateFor(template);        pdf.setTemplate(xslt);        pdf.setInput(xml);        pdf.xmlToPDF();                return pdf.getOutput().getBytes();    }