private static Method tryToGetMethod(Object object, String method, Class clazz) {
        try {
            return object
                    .getClass()
                    .getMethod(method, clazz);
        } catch (NoSuchMethodException e) {
            return null;
        }
    }
Tries to get method. Silently swallows NoMethodException and returns
<code>null</code> if not found.

@param object the object to get method from.
@param method the name of the method to get.
@param clazz  the parameter type of the method to get.
@return the found method instance
tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/resource/TikaResource.java