if (viewState == null) { return SKIP_BODY; }  List<ViewStateMessage> messages = viewState.getMessages(); if (! messages.isEmpty()) { writeMessage(messages.get(0));
if (message != null) { writeMessage(message);
    public int doStartTag() throws JspException {        IViewState viewState = getViewStateWithId(getFor());                if (viewState == null) {            return SKIP_BODY;        }        List<ViewStateMessage> messages = viewState.getMessages();        if (! messages.isEmpty()) {            writeMessage(messages.get(0));        }                return SKIP_BODY;    }