docs: private SimpleOrderedMap<Object> createOutput(boolean detailed) {
      // checkResponseOnException();
      SimpleOrderedMap<Object> output = new SimpleOrderedMap<>();
      updateShardInfo();
      output.add(NAME_KEY, key);
      output.add(NAME_REQUEST, request);
      if (errorStatus) {
        output.add(NAME_ERROR, errorMessage);
      }
      if (abortStatus) {
        output.add(NAME_ABORT, abortMessage);
      }
      output.add(NAME_FINISHED, finished);
      if (totalTime != null) {
        output.add(NAME_TIME_TOTAL, totalTime);
      }
      output.add(NAME_TIME_START, (new Date(startTime)).toString());
      output.add(NAME_SHARDREQUEST, shardRequest);
      if (shardNumberTotal > 0) {
        if (detailed) {
          output.add(NAME_STATUS_DISTRIBUTED, createShardsOutput());
        } else {
          output.add(NAME_STATUS_DISTRIBUTED, true);
        }
      } else if (detailed) {
        output.add(NAME_STATUS_DISTRIBUTED, false);
      }
      if (status.numberSegmentsTotal != null) {
        output.add(NAME_STATUS_SEGMENT_NUMBER_TOTAL, status.numberSegmentsTotal);
        output.add(NAME_STATUS_SEGMENT_NUMBER_FINISHED, status.numberSegmentsFinished);
        if (!status.subNumberSegmentsFinished.isEmpty()) {
          output.add(NAME_STATUS_SEGMENT_SUB_NUMBER_FINISHED, status.subNumberSegmentsFinished);
          output.add(NAME_STATUS_SEGMENT_SUB_NUMBER_TOTAL, status.subNumberSegmentsTotal);
          output.add(NAME_STATUS_SEGMENT_SUB_NUMBER_FINISHED_TOTAL, status.subNumberSegmentsFinishedTotal);
        }
      }
      if (status.numberDocumentsTotal != null) {
        output.add(NAME_STATUS_DOCUMENT_NUMBER_TOTAL, status.numberDocumentsTotal);
        output.add(NAME_STATUS_DOCUMENT_NUMBER_FOUND, status.numberDocumentsFound);
        output.add(NAME_STATUS_DOCUMENT_NUMBER_FINISHED, status.numberDocumentsFinished);
        if (!status.subNumberDocumentsFinished.isEmpty()) {
          output.add(NAME_STATUS_DOCUMENT_SUB_NUMBER_FINISHED, status.subNumberDocumentsFinished);
          output.add(NAME_STATUS_DOCUMENT_SUB_NUMBER_TOTAL, status.subNumberDocumentsTotal);
          output.add(NAME_STATUS_DOCUMENT_SUB_NUMBER_FINISHED_TOTAL, status.subNumberDocumentsFinishedTotal);
        }
      }
      return output;
    }