Map<Integer,FlashScope> scopes = (Map<Integer,FlashScope>) req.getSession().getAttribute(StripesConstants.REQ_ATTR_FLASH_SCOPE_LOCATION);
try { HttpSession session =  req.getSession(create); Map<Integer,FlashScope> scopes = null; if (session != null) { scopes = (Map<Integer,FlashScope>) session.getAttribute(StripesConstants.REQ_ATTR_FLASH_SCOPE_LOCATION);
    private static Map<Integer,FlashScope> getContainer(HttpServletRequest req, boolean create) {        Map<Integer,FlashScope> scopes = (Map<Integer,FlashScope>)                req.getSession().getAttribute(StripesConstants.REQ_ATTR_FLASH_SCOPE_LOCATION);        if (scopes == null && create) {            scopes = new HashMap<Integer,FlashScope>();            req.getSession().setAttribute(StripesConstants.REQ_ATTR_FLASH_SCOPE_LOCATION, scopes);        }        return scopes;    }