requestId.set(request.getId());
// Wait until external timeout expires
Thread.sleep(externalTimeout + 1000L);
RHTTPResponse response = new RHTTPResponse(request.getId(), 200, "OK", new HashMap<String, String>(), request.getBody());
client.deliver(response);
}
catch (Exception x)
{
exceptionRef.set(x);
}