private void run(ExecutorService es) {
// HazelcastCachingProvider hcp = new HazelcastCachingProvider();
//
// HazelcastCacheManager cacheManager = new HazelcastCacheManager(hcp,instance,hcp.getDefaultURI(),hcp.getDefaultClassLoader(),null);
final CachingProvider cachingProvider = HazelcastServerCachingProvider.createCachingProvider(instance);
// final CachingProvider cachingProvider = Caching.getCachingProvider();
final CacheManager cacheManager = cachingProvider.getCacheManager();
CacheConfig<String, Object> config = new CacheConfig<String, Object>();
config.setTypes(String.class, Object.class);
config.setStatisticsEnabled(true);