public MechanizeAgent(final AbstractHttpClient client, final HttpCache httpCache) {
this.client = client;
setupClient(client);
this.requestChain = new DefaultMechanizeChainFilter(new MechanizeHttpClientFilter(this.client));
addFilter(new HttpCacheFilter(httpCache));
this.cookies = new Cookies(this.client);
}