IViewState viewState = getViewStateWithId(getFor());
ErrorMessage message = getMessage();
    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;    }