public static void initProfiles(Map<String, LanguageProfile> profilesMap) {
        clearProfiles();
        for (Map.Entry<String, LanguageProfile> entry : profilesMap.entrySet()) {
            addProfile(entry.getKey(), entry.getValue());
        }
    }
Initializes the language profiles from a user supplied initialized Map.
This overrides the default set of profiles initialized at startup,
and provides an alternative to configuring profiles through property file

@param profilesMap map of language profiles
tika-langdetect/tika-langdetect-tika/src/main/java/org/apache/tika/langdetect/tika/LanguageIdentifier.java