final Configuration config = StripesFilter.getConfiguration(); final Method handler = ctx.getHandler(); final ActionBean bean = ctx.getActionBean();   ctx.setLifecycleStage(LifecycleStage.EventHandling); ctx.setInterceptors(config.getInterceptors(LifecycleStage.EventHandling));  return ctx.wrap( new Interceptor() { public Resolution intercept(ExecutionContext ctx) throws Exception { Object returnValue = handler.invoke(bean);  if (returnValue != null && returnValue instanceof Resolution) { return (Resolution) returnValue; } else if (returnValue != null) { log.warn("Expected handler method ", handler.getName(), " on class ", bean.getClass().getSimpleName(), " to return a Resolution. Instead it ", "returned: ", returnValue); }  return null; } });
return DispatcherHelper.invokeEventHandler(ctx);
    protected Resolution invokeEventHandler(ExecutionContext ctx) throws Exception {        final Configuration config = StripesFilter.getConfiguration();        final Method handler = ctx.getHandler();        final ActionBean bean = ctx.getActionBean();        // Finally execute the handler method!        ctx.setLifecycleStage(LifecycleStage.EventHandling);        ctx.setInterceptors(config.getInterceptors(LifecycleStage.EventHandling));        return ctx.wrap( new Interceptor() {            public Resolution intercept(ExecutionContext ctx) throws Exception {                Object returnValue = handler.invoke(bean);                if (returnValue != null && returnValue instanceof Resolution) {                    return (Resolution) returnValue;                }                else if (returnValue != null) {                    log.warn("Expected handler method ", handler.getName(), " on class ",                             bean.getClass().getSimpleName(), " to return a Resolution. Instead it ",                             "returned: ", returnValue);                }                return null;            }        });    }