@Override
    protected JsonFactory getJsonFactory() {
        return new YAMLFactory();
    }
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