public static HttpServletResponse toHttp(ServletResponse response) {
        return (HttpServletResponse) response;
    }
A convenience method that merely casts the incoming <code>ServletResponse</code> to an
<code>HttpServletResponse</code>:
<p/>
<code>return (HttpServletResponse)response;</code>
<p/>
Logic could be changed in the future for logging or throwing an meaningful exception in
non HTTP request environments (e.g. Portlet API).

@param response the outgoing ServletResponse
@return the <code>response</code> argument casted to an <code>HttpServletResponse</code>.
web/src/main/java/org/apache/shiro/web/util/WebUtils.java