private void updateSecureFilterChain(final FilterChainBuilder builder) {
builder.add(1, new TunnelFilter(proxyServer, uri));
final int idx = builder.indexOfType(HttpClientFilter.class);
assert (idx != -1);
builder.add(idx + 1, new ProxyFilter(proxyServer, clientConfig, true));
}