public void onRequest(final IHttpExchange exchange) throws IOException, BadMessageException {
receivedRequests.incrementAndGet();
int delay = exchange.getRequest().getIntParameter("delay", 0);
TimerTask task = new TimerTask() {
@Override
public void run() {
try {
exchange.send(new HttpResponse(200, "text/plain", "OK"));
} catch (IOException ioe) {