builder.storeAsBinary().enable().storeKeysAsBinary(true).storeValuesAsBinary(false);
if (this.maxSize > 0) {
if (!groupCacheConfiguration.eviction().strategy().isEnabled()) {
builder.eviction().strategy(EvictionStrategy.LRU);
}
builder.eviction().maxEntries(this.maxSize);
}
groupCache.getCacheManager().defineConfiguration(beanName, builder.build());
Cache<K, MarshalledValue<E, MarshallingContext>> cache = container.<K, MarshalledValue<E, MarshallingContext>>getCache(beanName);
MarshallingContext context = new MarshallingContext(this.factory, passivationManager);
MarshalledValueFactory<MarshallingContext> valueFactory = new SimpleMarshalledValueFactory(context);