@SuppressWarnings({ "unchecked", "deprecation" })
void generate(HttpServletResponse response) throws SecurityException, Exception {
EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
Session session = ((org.hibernate.ejb.EntityManagerImpl) em).getSession();
Connection connection = session.connection();
task.getAppContext().put("OdaJDBCDriverPassInConnection", connection);
IRenderOption options = new RenderOption();
if (outputFormat.equals(Constants.REPORT_OUTPUT_HTML)) {
options.setOutputFormat("html");