@Override
    public void save(final Stream<? extends RegisteredService> toSave) {
        serviceManagers.forEach(mgr -> {
            val filtered = toSave.filter(mgr::supports);
            mgr.save(filtered);
        });
    }
This is {@link DefaultChainingServicesManager}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/mgmt/DefaultChainingServicesManager.java