}
// TODO(corysmith): Refactoring the streaming into a separate layer.
if (!done) { // we are still streaming, so we respond with the streaming
// acknowledge.
// this is independent of receiving an actual response.
final String jsonResponse = gson.toJson(new BrowserStreamAcknowledged(streamedResponses.get(browser)));
logger.trace("sending jsonResponse {}", jsonResponse);
writer.print(jsonResponse);
writer.flush();
return;
} else {