protected void set(String name, String[] values) {
        //TODO: optimize this to not copy if all
        //values are to be included "as is"
        if (values != null) {
            metadata.remove(name);
            for (String v : values) {
                add(name, v);
            }
        } else {
            metadata.remove(name);
        }
    }
Set metadata name/value. Associate the specified value to the specified
metadata name. If some previous values were associated to this name,
they are removed. If the given value is <code>null</code>, then the
metadata entry is removed.

@param name  the metadata name.
@param value the metadata value, or <code>null</code>
tika-core/src/main/java/org/apache/tika/metadata/Metadata.java