code: public static void applyPageConfig(MultivaluedMap<String, String> queryParams, Query query) {
          Integer maxRows = getSingleIntegerParam(queryParams.get(PER_PAGE_PARAM_NAME));
  
          if (maxRows == null && DEFAULT_PER_PAGE != null && DEFAULT_PER_PAGE > 0) {
              maxRows = DEFAULT_PER_PAGE;
          }
  
          if (maxRows != null) {
              if (maxRows <= 0) {
                  maxRows = SYS_DEFAULT_PER_PAGE;
              }
              if (MAX_PER_PAGE != -1 && maxRows > MAX_PER_PAGE) {
                  maxRows = MAX_PER_PAGE;
              }
              query.setMaxRows(maxRows);
          }
  
          Integer firstRow = getSingleIntegerParam(queryParams.get(PAGE_PARAM_NAME));
          if (firstRow != null && maxRows != null) {
              if (firstRow < 1) {
                  firstRow = 1;
              }
              firstRow--;
              firstRow = firstRow * maxRows;
              query.setFirstRow(firstRow);
          }
      }
docs: <p>applyPageConfig.</p>
  
  @param queryParams a {@link javax.ws.rs.core.MultivaluedMap} object.
  @param query       a {@link io.ebean.Query} object.