public <T> T get(Class<T> key, T defaultValue) {
        T value = get(key);
        if (value != null) {
            return value;
        } else {
            return defaultValue;
        }
    }
Returns the object in this context that implements the given interface,
or the given default value if such an object is not found.

@param key          the interface implemented by the requested object
@param defaultValue value to return if the requested object is not found
@return the object that implements the given interface,
or the given default value if not found
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-zip-commons/src/main/java/org/apache/tika/detect/zip/StreamingDetectContext.java