<T> T getAttr(final String id, final Class<T> clazz) {
            final Object obj = httpContext.getAttribute(id);
            if (obj == null) {
                return null;
            }
            return clazz.cast(obj);
        }
Internal adaptor class that delegates all its method calls to a plain {@link HttpContext}.
To be removed in the future.
httpclient5/src/main/java/org/apache/hc/client5/http/protocol/HttpClientContext.java