code: public static void checkCacheConfig(CacheConfig cacheConfig, CacheMergePolicyProvider mergePolicyProvider) {
          checkCacheConfig(cacheConfig.getInMemoryFormat(), cacheConfig.getEvictionConfig(), cacheConfig.getMergePolicy(),
                  cacheConfig, mergePolicyProvider);
      }
docs: Validates the given {@link CacheConfig}.
  
  @param cacheConfig         the {@link CacheConfig} to check
  @param mergePolicyProvider the {@link CacheMergePolicyProvider} to resolve merge policy classes