code: public static <T> IQueryResult<T> abortResult(String reason) {
          return packageResult(null, CompletionStatus.ABORTED,
              reason == null ? null : Collections.singletonMap("reason", (Object) reason));
      }
docs: Returns a query result for an aborted operation.
  
  @param <T> Class of query result.
  @param reason Optional reason for the aborted operation.
  @return Query result.