request.setMethod(method);
request.setEntity(entity);
request.setClientInfo(clientInfo);
// Actually handle the call
Response response = handle(request);
if (response.getStatus().isError()) {
doError(response.getStatus());
} else {
result = (response == null) ? null : response.getEntity();
}
return result;
}