class PriorityTagUtil {

    public static PRIORITY resolve(Iterable<Tag> tags) {
        //default
        PRIORITY v = PRIORITY.NORMAL;

        String value = Utils.getTagValue(tags, TAG_PRIORITY_KEY);
        if (value != null) {
            for (PRIORITY p : PRIORITY.values()) {
                if (p.name().equalsIgnoreCase(value)) {
                    return p;
                }
            }
        }
        return v;
    }

    private  PriorityTagUtil();

}