* @return
*/
public static HttpServletResponse extractHttpServletResponse(final WebScriptResponse request) {
HttpServletResponse servletResponse = null;
if (request instanceof WrappingWebScriptResponse) {
final WebScriptResponse nextResponse = ((WrappingWebScriptResponse) request).getNext();
if (nextResponse instanceof WebScriptServletResponse) {
servletResponse = ((WebScriptServletResponse) nextResponse).getHttpServletResponse();
} else if (nextResponse != null) {
servletResponse = extractHttpServletResponse(nextResponse);
}