public CustomCacheManager() {
   try {
     cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
     cache.clear();
   } catch (CacheException e) {
     throw new RuntimeException("Impossible to get the cache from the manager");
   }
 }
 public static void clearCache() {
   cache.clear();
 }