class PostmanService {

    String getSeverity(String... path) {
        // Deepest severity in the folder/request hierarchy has precedence
        for (int i = path.length - 1; i >= 0; i--) {
            final Matcher matcher = SEVERITY_PATTERN.matcher(path[i]);
            if (matcher.matches()) {
                return matcher.group(1).substring(Tag.SEVERITY_PREFIX.length());
            }
        }
        return "";
    }

}