public static Map<String, Object> loadYamlProperties(final Resource... resource) {
        val factory = new YamlPropertiesFactoryBean();
        factory.setResolutionMethod(YamlProcessor.ResolutionMethod.OVERRIDE);
        factory.setResources(resource);
        factory.setSingleton(true);
        factory.afterPropertiesSet();
        return (Map) factory.getObject();
    }
Load yaml properties map.

@param resource the resource
@return the map
core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/CasCoreConfigurationUtils.java