public static void setContextMap(Map<String, String> contextMap) {
        if (getMDCAdapter() == null) {
            throw new IllegalStateException(MDC_APAPTER_CANNOT_BE_NULL_MESSAGE);
        }
        getMDCAdapter().setContextMap(contextMap);
    }
Set the current thread's context map by first clearing any existing map and
then copying the map passed as parameter. The context map passed as
parameter must only contain keys and values of type String.

Null valued argument is allowed (since SLF4J version 2.0.0).

@param contextMap
         must contain only keys and values of type String
@since 1.5.1
slf4j-api/src/main/java/org/slf4j/MDC.java