Server Side Pagination Using Spring

Controller class -
List<UserInfo> loadUserInfoDetails = service.getAllUserInfoDetails();
    if(loadUserInfoDetails.size() > CommonUtils.PAGE_MAX_VALUE) {
    int pageNumberRequest = 0;
    if( !request.getParameter("page").isEmpty() ) {
    pageNumberRequest = Integer.parseInt(request.getParameter("page"));
    }
    commonPaginationService.makePaginationLogic(CommonUtils.PAGE_MIN_VALUE, CommonUtils.PAGE_MAX_VALUE, loadUserInfoDetails, mav, pageNumberRequest);
    }
    mav.setViewName("admin/welcome");