private void createPageConfig(HttpServletRequest request) {

        PageConfig config = new PageConfig();
        config.setHasNext(false);
        config.setHasPrevious(false);
        request.setAttribute(RequestAttributes.PAGINATION_CONFIG, config);
    }