* @param ctx the ExecutionContext being used to process the current request
* @return a Resolution if any interceptor determines that the request processing should
* be aborted in favor of another Resolution, null otherwise.
*/
public static Resolution resolveActionBean(final ExecutionContext ctx) throws Exception {
final Configuration config = StripesFilter.getConfiguration();
ctx.setLifecycleStage(LifecycleStage.ActionBeanResolution);
ctx.setInterceptors(config.getInterceptors(LifecycleStage.ActionBeanResolution));
return ctx.wrap( new Interceptor() {
public Resolution intercept(ExecutionContext ctx) throws Exception {
// Look up the ActionBean and set it on the context
ActionBeanContext context = ctx.getActionBeanContext();
ActionBean bean = StripesFilter.getConfiguration().getActionResolver().getActionBean(context);