@Override public ClientResponse<Intermediate> handleResponse(HttpResponse httpResponse, TrafficCop trafficCop) {
    try {
      final HttpHeaders headers = httpResponse.headers();
      manager.put(uri, Maps.asMap(headers.names(), headers::getAll));
      return delegate.handleResponse(httpResponse, trafficCop);
    } catch (IOException e) {
      LOG.error("Error while processing Cookies from header", e);
      throw new RuntimeException(e);
    }
  }
Class to handle Cookies used to cache the Kerberos Credentials.
@param <Intermediate> intermediate response type.
@param <Final> final response type.
druid-handler/src/java/org/apache/hadoop/hive/druid/security/ResponseCookieHandler.java