code: public static QueryByCriteria newQuery(Class classToSearchFrom, Criteria criteria)
      {
          return newQuery(classToSearchFrom, criteria, false);
      }
docs: Method declaration
  @param classToSearchFrom
  @param criteria
  @return QueryByCriteria