Class<? extends ActionBean> beanClass = this.formBeans.get(urlBinding); ActionBean bean;  if (beanClass == null) { StripesServletException sse = new StripesServletException( "Could not locate an ActionBean that is bound to the URL [" + urlBinding + "]. Commons reasons for this include mis-matched URLs and forgetting " + "to implement ActionBean in your class. Registered ActionBeans are: " + this.formBeans);  log.error(sse); throw sse; }  try { if (beanClass.isAnnotationPresent(SessionScope.class)) { HttpServletRequest request = context.getRequest(); bean = (ActionBean) request.getSession().getAttribute(urlBinding);  if (bean == null) { bean = makeNewActionBean(beanClass, context); request.getSession().setAttribute(urlBinding, bean); } } else { bean = makeNewActionBean(beanClass, context); }  return bean; } catch (Exception e) { StripesServletException sse = new StripesServletException( "Could not create instance of ActionBean type [" + beanClass.getName() + "].", e); log.error(sse); throw sse; }
request.setAttribute(RESOLVED_ACTION, boundUrl); return getActionBean(context, boundUrl);
    public ActionBean getActionBean(ActionBeanContext context, String urlBinding)            throws StripesServletException {        Class<? extends ActionBean> beanClass = this.formBeans.get(urlBinding);        ActionBean bean;        if (beanClass == null) {            StripesServletException sse = new StripesServletException(                    "Could not locate an ActionBean that is bound to the URL [" + urlBinding +                            "]. Commons reasons for this include mis-matched URLs and forgetting " +                            "to implement ActionBean in your class. Registered ActionBeans are: " +                            this.formBeans);            log.error(sse);            throw sse;        }        try {            if (beanClass.isAnnotationPresent(SessionScope.class)) {                HttpServletRequest request = context.getRequest();                bean = (ActionBean) request.getSession().getAttribute(urlBinding);                if (bean == null) {                    bean = makeNewActionBean(beanClass, context);                    request.getSession().setAttribute(urlBinding, bean);                }            }            else {                bean = makeNewActionBean(beanClass, context);            }            return bean;        }        catch (Exception e) {            StripesServletException sse = new StripesServletException(                "Could not create instance of ActionBean type [" + beanClass.getName() + "].", e);            log.error(sse);            throw sse;        }    }