Refactor to use spring mvc format of paging.