private void validatePartitionResolver(final PartitionRegionConfig prconf,
      final PartitionAttributes userPA) {
    /*
     * if (userPA.getPartitionResolver() == null && prconf.getPartitionResolverClassName() != null)
     * { throw new IllegalStateException(
     * String.
     * format("The PartitionResolver=%s is incompatible with the PartitionResolver=%s used by other distributed members."
     * ,
     * new Object[] { "null", prconf.getPartitionResolverClassName() })); }
     */
    if (userPA.getPartitionResolver() != null && prconf.getResolverClassName() != null) {
      if (!(prconf.getResolverClassName()
          .equals(userPA.getPartitionResolver().getClass().getName()))) {
        throw new IllegalStateException(
            String.format(
                "The PartitionResolver=%s is incompatible with the PartitionResolver=%s used by other distributed members.",
                userPA.getPartitionResolver().getClass().getName(),
                prconf.getResolverClassName()));
      }
    }
  }
This method validates the PartitionedAttributes that user provided PR Attributes with PR
Attributes set in PR Config obtained from global meta-data allPartitionedRegion region
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionRegionConfigValidator.java