public static ITikaToXMPConverter getConverter(String mimetype) throws TikaException {
        if (mimetype == null) {
            throw new IllegalArgumentException("mimetype must not be null");
        }

        ITikaToXMPConverter converter = null;

        MediaType type = MediaType.parse(mimetype);

        if (type != null) {
            Class<? extends ITikaToXMPConverter> clazz = CONVERTER_MAP.get(type);
            if (clazz != null) {
                try {
                    converter = clazz.getDeclaredConstructor().newInstance();
                } catch (Exception e) {
                    throw new TikaException(
                            "TikaToXMP converter class cannot be instantiated for mimetype: " +
                                    type.toString(), e);
                }
            }
        }

        return converter;
    }
Retrieve a specific converter according to the mimetype

@param mimetype the Mimetype
@return the converter or null, if none exists
@throws TikaException
tika-xmp/src/main/java/org/apache/tika/xmp/convert/TikaToXMP.java