public <T> void set(Class<T> key, T value) {
        if (value != null) {
            context.put(key.getName(), value);
        } else {
            context.remove(key.getName());
        }
    }
Adds the given value to the context as an implementation of the given
interface.

@param key   the interface implemented by the given value
@param value the value to be added, or <code>null</code> to remove
tika-core/src/main/java/org/apache/tika/parser/ParseContext.java