public static HttpServletResponse getHttpServletResponseFromExternalWebflowContext(final RequestContext context) {
        return (HttpServletResponse) context.getExternalContext().getNativeResponse();
    }
Gets the http servlet response from the context.

@param context the context
@return the http servlet response
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java