return Type.valueOf(getType());
return Type.valueOf(String.valueOf(getType()).toUpperCase());
    private Type getMessageType() {        MessagesTag parent = (MessagesTag) findAncestorWithClass(this, MessagesTag.class);        if (getType() != null) {            if (parent != null && parent.getMessageType() != null) {                logger.warn("parent 'messages' tag is beeing ignored since the 'type' attribute was specified");            }                        return Type.valueOf(getType());        }        else {            if (parent != null) {                return parent.getMessageType();            }        }                return null;    }