if (existingResponse instanceof AjaxResponse) {
response = (AjaxResponse) existingResponse;
}
else {
response = new AjaxResponse(request, context);
response.setHeaders(existingResponse.headers());
response.setUserInfo(existingResponse.userInfo());
response.appendContentString(existingResponse.contentString());
}
}
if (response == null) {