// Our cache needs a unique passivation location
for (CacheLoaderConfig loader: groupCache.getConfiguration().getCacheLoaders()) {
CacheLoaderConfig config = loader.clone();
if (config instanceof FileCacheStoreConfig) {
FileCacheStoreConfig fileConfig = (FileCacheStoreConfig) config;
fileConfig.path(fileConfig.getPath() + File.separatorChar + beanName);
}
configuration.fluent().loaders().addCacheLoader(config);
}
groupCache.getCacheManager().defineConfiguration(beanName, groupCache.getName(), configuration);
Cache<MarshalledValue<K, MarshallingContext>, MarshalledValue<E, MarshallingContext>> cache = container.<MarshalledValue<K, MarshallingContext>, MarshalledValue<E, MarshallingContext>>getCache(beanName).getAdvancedCache().with(this.getClass().getClassLoader());