currentMonitor = progressMonitor;
try {
PaginatedResult<T> page = list(query, sortBy, null, includeDeleted);
progressMonitor.beginTask(page.getTotal());
PaginationInfo pi = visitPage(page, visitor, progressMonitor);
while(pi != null)
pi = visitPage(list(query, sortBy, pi, includeDeleted), visitor, progressMonitor);
if(!progressMonitor.isCanceled())
progressMonitor.endTask();