void add(MimeType type) {
        registry.addType(type.getType());
        types.put(type.getType(), type);

        // Update the magics index...
        if (type.hasMagic()) {
            magics.addAll(type.getMagics());
        }

        // Update the xml (xmlRoot) index...
        if (type.hasRootXML()) {
            xmls.add(type);
        }
    }
Add the specified mime-type in the repository.

@param type is the mime-type to add.
tika-core/src/main/java/org/apache/tika/mime/MimeTypes.java