private static int bound(final int value, final int maxValue) {
        return Math.min(maxValue, Math.max(1, value));
    }
Creates a unfiltered list pager.

@param request              the request object for the page in question
@param response             the response object for the page in question
@param items                the complete list of items to display on the page
@param sortColumnNumber     the index of the column (0-based) of which values are to be ordered
@param sortDescending       true if the column is to be in descending order, false for ascending order.
@param filter               the filter to apply to the complete list
@param additionalFormFields 0 or more input field identifiers (<strong>NOT form field names</strong>) to include in requests for other pages
xmppserver/src/main/java/org/jivesoftware/util/ListPager.java