My report uses static text and text field elements. The application fills this report with a datasource and creates the JasperPrint instance. Then I iterate over the pages and the elements, because I want to generate a proprietary output. All elements are instances of JRTemplatePrintText, but how do I know, whether this element was a static text or a text field in my report template? Code:JasperPrint print = JasperFillManager.fillReport(report, properties, new JRBeanArrayDataSource(getResultSet()));List<JRPrintPage> pages = print.getPages();List<JRPrintElement> elements = pages.get(0).getElements();for (JRPrintElement e : elements) { if (e.getClass() == JRTemplatePrintText.class) { JRTemplatePrintText printElement = (JRTemplatePrintText)e; }}