private List<JacksonObjectMapperCustomizer> getObjectMapperCustomizers() {
        val customizers = ServiceLoader.load(JacksonObjectMapperCustomizer.class)
            .stream()
            .map(ServiceLoader.Provider::get)
            .filter(BeanSupplier::isNotProxy)
            .collect(Collectors.toList());

        val effectiveContext = ObjectUtils.defaultIfNull(applicationContext, ApplicationContextProvider.getApplicationContext());
        if (effectiveContext != null) {
            val customizerBeans = effectiveContext.getBeansOfType(JacksonObjectMapperCustomizer.class).values();
            customizers.addAll(customizerBeans);
        }
        AnnotationAwareOrderComparator.sort(customizers);
        return customizers;
    }
Produce an object mapper for YAML serialization/de-serialization.

@return the object mapper
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/JacksonObjectMapperFactory.java