protected static String extractGenre(String rawGenre) {
        int open = rawGenre.indexOf("(");
        int close = rawGenre.indexOf(")");
        if (open == -1 && close == -1) {
            return rawGenre;
        } else if (open < close) {
            String genreStr = rawGenre.substring(0, open).trim();
            try {
                int genreID = Integer.parseInt(rawGenre.substring(open + 1, close));
                return ID3Tags.GENRES[genreID];
            } catch (ArrayIndexOutOfBoundsException | NumberFormatException e) {
                return genreStr;
            }
        } else {
            return null;
        }
    }
This is used to parse ID3 Version 2.2 Tag information from an MP3 file,
if available.

@see <a href="http://id3lib.sourceforge.net/id3/id3v2-00.txt">MP3 ID3 Version 2.2 specification</a>
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-audiovideo-module/src/main/java/org/apache/tika/parser/mp3/ID3v22Handler.java