@Override
    public RegisteredService findServiceById(final long id) {
        return registeredServices.stream().filter(r -> r.getId() == id).findFirst().orElse(null);
    }
Default In Memory Service Registry Dao for test/demonstration purposes.

@author Scott Battaglia
@since 3.1
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/InMemoryServiceRegistry.java