private HttpUriRequest createRequestCopy(HttpHost host, HttpRequest request) {
final String method = request.getRequestLine().getMethod();
final String uriLine = removeSchemeAndHost(request.getRequestLine().getUri());
if(request instanceof HttpEntityEnclosingRequest) {
final VegaHttpEntityEnclosingUriRequest r = new VegaHttpEntityEnclosingUriRequest(host, method, uriLine);
r.setEntity(copyEntity(((HttpEntityEnclosingRequest) request).getEntity()));
return r;
}
return new VegaHttpUriRequest(host, method, uriLine);
}