protected Cache getCache() { if (manager == null || Status.STATUS_SHUTDOWN.equals(manager.getStatus()) || cache == null || !Status.STATUS_ALIVE.equals(cache.getStatus())) { cache = createCache(); } else { cache = getManager().getCache(cacheId); } return cache; }
public CacheManager getManager() { if (manager == null || Status.STATUS_SHUTDOWN.equals(manager.getStatus())) { manager = CacheManager.create(); } return manager; }