com.centraview.advancedsearch.AdvancedSearchLocalHome.class);
AdvancedSearchLocal localAdvancedSearch = (AdvancedSearchLocal) cfh.create();
localAdvancedSearch.setDataSource(this.dataSource);
ReportLocalHome reportHome = EntityHomeFactory.getReportLocalHome();
ReportLocal reportLocal = reportHome.findByPrimaryKey(new ReportPK(reportId, this.dataSource));
resultVO.setReportId(reportLocal.getReportId());
resultVO.setModuleId(reportLocal.getModuleId());
resultVO.setName(reportLocal.getName());
resultVO.setSearchCriteria(getSearchCriteriaString(userId, reportId));
// get report dates
java.sql.Date fromDate = reportLocal.getDateFrom();
java.sql.Date toDate = reportLocal.getDateTo();
resultVO.setDateRange(fromDate, toDate);
String where = localAdvancedSearch.getWhereClauseForReport(userId, search, "");
ReportBuilder reportbuilder = null;