@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        ParseContext that = (ParseContext) o;
        return context.equals(that.context);
    }
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-core/src/main/java/org/apache/tika/parser/ParseContext.java