public TikaConfig getTikaConfig() {
        //be as lazy as possible and cache the TikaConfig
        if (tikaConfig == null) {
            tikaConfig = context.get(TikaConfig.class);
            if (tikaConfig == null) {
                tikaConfig = TikaConfig.getDefaultConfig();
            }
        }
        return tikaConfig;
    }
@return Returns a {@link TikaConfig} -- trying to find it first in the ParseContext
that was included during initialization, and then creating a new one from
via {@link TikaConfig#getDefaultConfig()} if it can't find one in the
ParseContext. This caches the default config so that it only has to be created once.
tika-core/src/main/java/org/apache/tika/extractor/EmbeddedDocumentUtil.java