this.messages = new ArrayList<ViewStateMessage>();
this.messages = new ArrayList<ErrorMessage>();
    private void ensureMessageList() {        if (this.messages == null) {            this.messages = new ArrayList<ViewStateMessage>();        }    }