this.proxyManager = ProxyFactory.getDefaultInstance()
.getSystemProxyManager();
Map map = new TreeMap(String.CASE_INSENSITIVE_ORDER);
final HttpProtocolHandler httpHandler =
new HttpProtocolHandler(this, config.getCache());
map.put("http", httpHandler);
map.put("https", httpHandler);
// configure a file handler.
FileProtocolHandler fileProtocolHandler = new FileProtocolHandler();