// Set socket timeout
e.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT,
Integer.valueOf((int) csPolicy.getReceiveTimeout()));
Proxy p = proxyFactory.createProxy(csPolicy , uri);
if (p != null && p.type() != Proxy.Type.DIRECT) {
InetSocketAddress isa = (InetSocketAddress)p.address();
HttpHost proxy = new HttpHost(isa.getHostName(), isa.getPort());
ConnRouteParams.setDefaultProxy(e.getParams(), proxy);
}
message.put(CXFHttpRequest.class, e);
}