public class PagedItemsController extends ErrorHandler {
protected PagedItemInfo createPagedInfo(int page, int items, String sortingField, boolean ask, String filterQuery) {
page = page - 1; //Requested pages started from 1
return new PagedItemInfo(items, page, sortingField, ask, filterQuery);
}