code: public static void checkMapConfig(MapConfig mapConfig, MergePolicyProvider mergePolicyProvider) {
          checkNotNativeWhenOpenSource(mapConfig.getInMemoryFormat());
          checkMapMergePolicy(mapConfig, mergePolicyProvider);
          logIgnoredConfig(mapConfig);
      }
docs: Validates the given {@link MapConfig}.
  
  @param mapConfig           the {@link MapConfig}
  @param mergePolicyProvider the {@link MergePolicyProvider} to resolve merge policy classes