@Override
    public boolean supports(final Resource resource) {
        val filename = StringUtils.defaultString(resource.getFilename()).toLowerCase(Locale.ENGLISH);
        return filename.endsWith(".yaml") || filename.endsWith(".yml");
    }
This is {@link YamlConfigurationPropertiesLoader}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/loader/YamlConfigurationPropertiesLoader.java