src/main/java/com/arpnetworking/logback/serialization/steno/SafeSerializationHelper.java
public static Map<String, Object> createSafeContext(
            final StenoEncoder encoder,
            final ILoggingEvent event,
            final ObjectMapper objectMapper,
            @Nullable final List<String> contextKeys,
            @Nullable final List<Object> contextValues) {
        return StenoSerializationHelper.createContext(encoder, event, objectMapper, contextKeys, contextValues);
    }
public static Map<String, Object> createSafeContext(
            final StenoEncoder encoder,
            final ILoggingEvent event,
            final ObjectMapper objectMapper,
            @Nullable final List<String> contextKeys,
            @Nullable final List<Object> contextValues) {
        return StenoSerializationHelper.createContext(encoder, event, objectMapper, contextKeys, contextValues);
    }
Create a serialization safe context based on the <code>StenoEncoder</code> configuration.

@since 1.11.2
@param encoder The <code>StenoEncoder</code> instance.
@param event The <code>ILoggingEvent</code> instance.
@param objectMapper <code>ObjectMapper</code> instance.
@param contextKeys The additional user provided context keys.
@param contextValues The additional user provided context values matching the keys.
@return <code>Map</code> with event context.