private void appendLinkToPages(final StringBuilder sb, final int firstPage, final int lastPage) {
        for (int i = firstPage; i <= lastPage; i++) {
            appendPageLink(sb, i);
        }
    }
@return a string that contains links to other pages in the list
xmppserver/src/main/java/org/jivesoftware/util/ListPager.java