/**
  * @param userId
  * @return
  */
 public QueryResultDTO getAllInstances(Options options, ActivityInstanceQuery query) {
   QueryResult<?> queryResult = activityInstanceUtils.getActivityInstances(options, query);
   if (CollectionUtils.isNotEmpty(options.extraColumns)) {
     return ActivityTableUtils.buildTableResult(
         queryResult, MODE.ACTIVITY_TABLE, null, options.extraColumns);
   } else {
     return ActivityTableUtils.buildTableResult(queryResult, MODE.ACTIVITY_TABLE);
   }
 }
 /** @param processInstanceDTOs */
 private QueryResultDTO buildActivitySearchResult(
     QueryResult<ActivityInstance> activityInstances) {
   QueryResultDTO buildWorklistResult =
       ActivityTableUtils.buildTableResult(activityInstances, MODE.ACTIVITY_TABLE);
   return buildWorklistResult;
 }