@Override
    public void close() {
        for (String param : ALL_CONTEXTS) {
            if (previous != null && previous.containsKey(param)) {
                MDC.put(param, previous.get(param));
            } else {
                MDC.remove(param);
            }
        }
    }
Close this logging context, restoring the Connect {@link MDC} parameters back to the state
just before this context was created. This does not affect other MDC parameters set by
connectors or tasks.
connect/runtime/src/main/java/org/apache/kafka/connect/util/LoggingContext.java