code: static void checkReplicatedMapMergePolicy(ReplicatedMapConfig replicatedMapConfig,
                                                com.hazelcast.replicatedmap.merge.MergePolicyProvider mergePolicyProvider) {
          String mergePolicyClassName = replicatedMapConfig.getMergePolicyConfig().getPolicy();
          Object mergePolicyInstance = getMergePolicyInstance(mergePolicyProvider, mergePolicyClassName);
          checkMergePolicy(replicatedMapConfig, mergePolicyInstance);
      }
docs: Checks the merge policy configuration of the given {@link ReplicatedMapConfig}.
  
  @param replicatedMapConfig the {@link ReplicatedMapConfig} to check
  @param mergePolicyProvider the {@link com.hazelcast.replicatedmap.merge.MergePolicyProvider}
  to resolve merge policy classes