@Override public ClientResponse<RetryResponseHolder<Intermediate>> handleChunk(
      ClientResponse<RetryResponseHolder<Intermediate>> clientResponse,
      HttpChunk httpChunk, long chunkNum) {
    if (clientResponse.getObj().shouldRetry()) {
      // Drain the buffer
      //noinspection ResultOfMethodCallIgnored
      httpChunk.getContent().toString();
      return clientResponse;
    } else {
      return wrap(httpResponseHandler.handleChunk(unwrap(clientResponse), httpChunk, chunkNum));
    }
  }
Class handling retry on Unauthorized responses.

@param <Intermediate> Intermediate response type.
@param <Final> final result type.
druid-handler/src/java/org/apache/hadoop/hive/druid/security/RetryIfUnauthorizedResponseHandler.java