if (stack != null) {
if (stack != null && !stack.empty()) {
    protected void restoreActionBean(HttpServletRequest request) {        Stack stack = getActionBeanStack(request, false);        if (stack != null) {            request.setAttribute(StripesConstants.REQ_ATTR_ACTION_BEAN, stack.pop());        }    }