private void appendPageLink(final StringBuilder sb, final int pageToLink) {
        final String cssClass;
        if (currentPage == pageToLink) {
            cssClass = " class='jive-current'";
        } else {
            cssClass = "";
        }

        sb.append(String.format("\n<a href='%s' onclick='return jumpToPage(%d)'%s>%s</a>",
            String.format("?%s=%d", REQUEST_PARAMETER_KEY_CURRENT_PAGE, pageToLink),
            pageToLink,
            cssClass,
            pageToLink));
    }
@return a string that contains links to other pages in the list
xmppserver/src/main/java/org/jivesoftware/util/ListPager.java