public void setEnvironment(Cache<K, V> cache, Set<K> inputKeys) {
cacheManager = cache.getCacheManager();
cacheNotifier = cache.getAdvancedCache().getComponentRegistry().getComponent(CacheNotifier.class);
cacheManagerNotifier = cache.getCacheManager().getGlobalComponentRegistry().getComponent(
CacheManagerNotifier.class);
distExecutor = new DefaultExecutorService(cache, new WithinThreadExecutor());
ourAddress = cache.getCacheManager().getAddress();
}