public int computePaginationBarEndIndex(int resultSize) {
    this.paginationBarEndIndex = this.paginationBarStartIndex + (resultSize - 1) / this.pageLength;
    return this.paginationBarEndIndex;
  }
Compute the Pagination Bar end index depending on the number of serach results
to be displayed.

@param resultSize The fetched result size
@return The end index of the Pagination bar
app/controllers/PaginationStats.java