class CurrentRequestTracker implements RequestTracker {

    public void trackRequest(LiveHttpRequest request, Supplier<String> state) {
        if (currentRequests.containsKey(request.id())) {
            currentRequests.get(request.id()).setCurrentThread(Thread.currentThread());
        } else {
            currentRequests.put(request.id(), new CurrentRequest(request, state));
        }
    }

}