}
@Override
public void addListener(final S scope, final KeyFilter keyFilter, final Object listener) {
startRegistryCache();
clusterRegistryCache.addListener(listener, new KeyFilter() {
@Override
public boolean accept(Object key) {
// All keys are known to be of type ScopedKey
ScopedKey<S, K> scopedKey = (ScopedKey<S, K>) key;
return scopedKey.hasScope(scope) && keyFilter.accept(scopedKey.getKey());