Integrating Pentaho Reporting with Java web application

I am trying to integrate my Pentaho generated reports with a Java application. My reports are based on OLAP data and written using MDX queries. I found an example on one of the blogs and used it as foundation. My code is:

    *
  1. The report definition file is a .prpt file which will be loaded and parsed *
  2. The data factory is a simple JDBC data factory using HSQLDB *
  3. There are no runtime report parameters used *
    *
  1. Implement the getReportDefinition() method and return the report definition (how the report * definition is generated is up to the implementing class). *
  2. Implement the getTableDataFactory() method and return the data factory to be used (how * this is created is up to the implementing class). *
  3. Implement the getReportParameters() method and return the set of report parameters to be used. * If no report parameters are required, then this method can simply return null *