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