@Override
    public boolean supports(final File file) {
        try {
            val contents = FileUtils.readFileToString(file, StandardCharsets.UTF_8.name()).trim();
            return supports(contents);
        } catch (final Exception e) {
            LOGGER.trace(e.getMessage(), e);
            return false;
        }
    }
This is {@link RegisteredServiceYamlSerializer}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServiceYamlSerializer.java