code: public static ReportQueryByCriteria newReportQuery(Class classToSearchFrom, Criteria criteria)
      {
          return newReportQuery(classToSearchFrom, criteria, false);
      }
docs: create a new ReportQueryByCriteria
  @param classToSearchFrom
  @param criteria
  @return ReportQueryByCriteria