@Override
    public RegisteredService findServiceById(final long id) {
        val response = searchForServiceById(id);
        if (LdapUtils.containsResultEntry(response)) {
            return this.ldapServiceMapper.mapToRegisteredService(response.getEntry());
        }
        return null;
    }
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