public String getPageSizeSelection() {
        final StringBuilder sb = new StringBuilder();
        sb.append(String.format("<select name='%s' onchange='return setPageSize(this.value);'>", REQUEST_PARAMETER_KEY_PAGE_SIZE));
        for (final int optionSize : PAGE_SIZES) {
            sb.append(String.format("<option value='%d'%s>%d</option>", optionSize, pageSize == optionSize ? " selected" : "", optionSize));
        }
        sb.append("</select>");
        return sb.toString();
    }
@return a string that contains HTML for selecting the page size
xmppserver/src/main/java/org/jivesoftware/util/ListPager.java