cacheFactory = new DefaultCacheFactory<String, Object>();
}
private void setupMaxSizeEviction(FacesContext facesContext, Cache<String, Object> cache) {
EvictionConfig evictionConfig = cache.getConfiguration().getEvictionConfig();
EvictionAlgorithmConfig evictionAlgorithmConfig = evictionConfig.getDefaultEvictionRegionConfig()
.getEvictionAlgorithmConfig();
if (evictionAlgorithmConfig instanceof EvictionAlgorithmConfigBase) {
EvictionAlgorithmConfigBase baseEvicitonConfig = (EvictionAlgorithmConfigBase) evictionAlgorithmConfig;
if (baseEvicitonConfig.getMaxNodes() <= 0) {