private void addGlob(String glob, MimeType type) throws MimeTypeException {
        MimeType previous = globs.get(glob);
        if (previous == null || registry.isSpecializationOf(previous.getType(), type.getType())) {
            globs.put(glob, type);
        } else if (previous == type ||
                registry.isSpecializationOf(type.getType(), previous.getType())) {
            // do nothing
        } else {
            throw new MimeTypeException("Conflicting glob pattern: " + glob);
        }
    }
Index of generic glob patterns, sorted by length.
tika-core/src/main/java/org/apache/tika/mime/Patterns.java