private void initNearCache() {
   NearCacheConfig nearCacheConfig = clientContext.getClientConfig().getNearCacheConfig(name);
   if (nearCacheConfig != null) {
     cacheOnUpdate =
         nearCacheConfig.getLocalUpdatePolicy() == NearCacheConfig.LocalUpdatePolicy.CACHE;
     NearCacheContext nearCacheContext =
         new NearCacheContext(
             nearCacheManager,
             clientContext.getSerializationService(),
             createNearCacheExecutor(clientContext.getExecutionService()));
     nearCache =
         nearCacheManager.getOrCreateNearCache(nameWithPrefix, nearCacheConfig, nearCacheContext);
     registerInvalidationListener();
   }
 }
 protected NearCache createNearCache(NearCacheManager nearCacheManager, String name) {
   return nearCacheManager.getOrCreateNearCache(
       name,
       createNearCacheConfig(DEFAULT_NEAR_CACHE_NAME, NearCacheConfig.DEFAULT_MEMORY_FORMAT),
       createNearCacheContext());
 }