cache = CacheManager.getInstance().getCache(CACHE_NAME);
    public void afterPropertiesSet() throws Exception {        if (CacheManager.getInstance().cacheExists(CACHE_NAME)) {            // dont remove the cache        } else {            manager = CacheManager.create();            // Cache name, max memory, overflowToDisk, eternal, timeToLive, timeToIdle            cache = new Cache(CACHE_NAME, Integer.MAX_VALUE, false, false,                    minutesToIdle * 60, minutesToIdle * 60);            manager.addCache(cache);        }    }