context.setAuthCache(authCache);
ApacheHttpClient4Engine engine = new ApacheHttpClient4Engine(httpclient, context);
ResteasyClient client = new ResteasyClientBuilder().httpEngine(engine).build();
client.register(JacksonJaxbJsonProvider.class);
client.register(JacksonObjectMapperProvider.class);
<BUG>client.register(RequestLogger.class);

client.register(ResponseLogger.class);
</BUG>
ProxyBuilder<T> proxyBuilder = client.target(uri).proxyBuilder(apiClassType);

context.setAuthCache(authCache);
ApacheHttpClient4Engine engine = new ApacheHttpClient4Engine(httpclient, context);
ResteasyClient client = new ResteasyClientBuilder().httpEngine(engine).build();
client.register(JacksonJaxbJsonProvider.class);
client.register(JacksonObjectMapperProvider.class);
client.register(RestRequestFilter.class);
client.register(RestResponseFilter.class);
ProxyBuilder<T> proxyBuilder = client.target(uri).proxyBuilder(apiClassType);
