Refactor the pagination listener does not rely on the "WillPaginate" annotation