Cache<?, ?> groupCache = this.groupCache.getValue();
Configuration groupCacheConfiguration = groupCache.getCacheConfiguration();
EmbeddedCacheManager container = groupCache.getCacheManager();
ConfigurationBuilder builder = new ConfigurationBuilder().read(groupCacheConfiguration);
if (this.maxSize > 0) {
builder.eviction().strategy(EvictionStrategy.LRU).maxEntries(this.maxSize);
}
groupCache.getCacheManager().defineConfiguration(beanName, builder.build());
Cache<MarshalledValue<K, MarshallingContext>, MarshalledValue<E, MarshallingContext>> cache = container.<MarshalledValue<K, MarshallingContext>, MarshalledValue<E, MarshallingContext>>getCache(beanName).getAdvancedCache().with(this.getClass().getClassLoader());
MarshallingContext context = new MarshallingContext(this.factory, passivationManager.getMarshallingConfiguration());
MarshalledValueFactory<MarshallingContext> keyFactory = new HashableMarshalledValueFactory(context);