queryCmd.setUserId(identityProvider.getName());
List<TaskSummary> results = doRestTaskOperationWithTaskId((Long) null, queryCmd);
logger.debug("{} results found.", results.size());
JaxbTaskSummaryListResponse resultList = paginateAndCreateResult(pageInfo, results, new JaxbTaskSummaryListResponse());
logger.debug("Returning {} results after pagination.", resultList.getList().size());
return createCorrectVariant(resultList, headers);
}