public void setAutoSerializer(AutoSerializer autoSerializer) {
    if (pdxSerializer != null) {
      throw new IllegalArgumentException(
          "The autoSerializer can not be set if a pdxSerializer is already set.");
    }
    this.autoSerializer = autoSerializer;
  }
@param autoSerializer the {@link AutoSerializer} to use
@throws IllegalArgumentException if a pdxSerializer has already been set
geode-management/src/main/java/org/apache/geode/management/configuration/Pdx.java