code: public static void applyMetaCriteriaToQuery(Query query, QueryWhere queryWhere) {
          if( queryWhere.getCount() != null ) {
             query.setMaxResults(queryWhere.getCount());
          }
          if( queryWhere.getOffset() != null ) {
             query.setFirstResult(queryWhere.getOffset());
          }
      }
docs: Small method to apply the meta criteria from the {@link QueryWhere} instance to the {@link Query} instance
  @param query The {@link Query} instance
  @param queryWhere The {@link QueryWhere} instance, with the abstract information about the query