code: public static void checkQueueConfig(QueueConfig queueConfig, SplitBrainMergePolicyProvider mergePolicyProvider) {
          checkMergePolicy(queueConfig, mergePolicyProvider, queueConfig.getMergePolicyConfig().getPolicy());
      }
docs: Validates the given {@link QueueConfig}.
  
  @param queueConfig         the {@link QueueConfig} to check
  @param mergePolicyProvider the {@link SplitBrainMergePolicyProvider} to resolve merge policy classes