@Override
        public AuditActionContext convert(@Nonnull final Document document) {
            return FunctionUtils.doUnchecked(() ->
                MAPPER.readValue(document.toJson(JsonWriterSettings.builder()
                    .outputMode(JsonMode.RELAXED)
                    .dateTimeConverter((value, writer) -> writer.writeString(DateTimeUtils.localDateOf(value).toString()))
                    .build()), AuditActionContext.class));
        }
This is {@link CasMongoDbThrottlingAutoConfiguration}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-throttle-mongo/src/main/java/org/apereo/cas/config/CasMongoDbThrottlingAutoConfiguration.java