private static boolean equals(Parser parser, Class clazz) {
        if (parser == null) {
            return false;
        }
        return parser.getClass().equals(clazz);
    }
Tries to find an existing parser within the ParseContext.
It looks inside of CompositeParsers and ParserDecorators.
The use case is when a parser needs to parse an internal stream
that is _part_ of the document, e.g. rtf body inside an msg.
<p/>
Can return <code>null</code> if the context contains no parser or
the correct parser can't be found.

@param clazz   parser class to search for
@param context
@return
tika-core/src/main/java/org/apache/tika/extractor/EmbeddedDocumentUtil.java