@Override
    public RegisteredService save(final RegisteredService rs) {
        invokeServiceRegistryListenerPreSave(rs);
        if (rs.getId() != RegisteredServiceDefinition.INITIAL_IDENTIFIER_VALUE) {
            return update(rs);
        }
        insert(rs);
        return rs;
    }
Implementation of the ServiceRegistry interface which stores the services in a LDAP Directory.

@author Misagh Moayyed
@author Marvin S. Addison
@since 4.0.0
support/cas-server-support-ldap-service-registry/src/main/java/org/apereo/cas/adaptors/ldap/services/LdapServiceRegistry.java