Update paginatorWithPathPattern method to match new impl.