private <T> ClientResponse<T> unwrap(ClientResponse<RetryResponseHolder<T>> response) {
    if (response.isFinished()) {
      return ClientResponse.finished(response.getObj().getObj());
    } else {
      return ClientResponse.unfinished(response.getObj().getObj());
    }
  }
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