wingsSession.getReloadManager().invalidateResources(); wingsSession.getReloadManager().clear(); SessionManager.removeSession();
finally { wingsSession.getReloadManager().clear(); SessionManager.removeSession(); SForm.clearArmedComponents(); }
    public static void dispatchEvents(HttpServletRequest request, HttpServletResponse response) throws ServletException {        synchronized (request.getSession()) {            WingsSession wingsSession = getSession(request, response);            SForm.clearArmedComponents();            Enumeration en = request.getParameterNames();            if (en.hasMoreElements()) {                wingsSession.fireRequestEvent(SRequestEvent.DISPATCH_START);                while (en.hasMoreElements()) {                    String paramName = (String) en.nextElement();                    String[] value = request.getParameterValues(paramName);                    wingsSession.getDispatcher().dispatch(paramName, value);                }                SForm.fireEvents();                wingsSession.fireRequestEvent(SRequestEvent.DISPATCH_DONE);            }            wingsSession.getReloadManager().invalidateResources();            wingsSession.getReloadManager().clear();            SessionManager.removeSession();        }    }