@Override
    public int doEndTag() throws JspTagException {
        try {
            if (msg != null && !msg.isEmpty()) {
                JspWriter out = pageContext.getOut();
                out.write("</div>");
            }
        } catch (IOException e) {
            throw new JspTagException(e.getMessage());
        }
        return EVAL_PAGE;
    }