code: public static RewriteWrappedRequest getCurrentInstance(ServletRequest request)
     {
        RewriteWrappedRequest wrapper = (RewriteWrappedRequest) request.getAttribute(RewriteWrappedRequest.class
                 .getName());
        return wrapper;
     }
docs: Get the current {@link RewriteWrappedRequest}