private Class getBaseClass() {
    if (base instanceof Ordered) {
      return Ordered.class;
    } else if (base instanceof TreeSet) {
      return TreeSet.class;
    } else if (base instanceof Set) {
      return Set.class;
    } else {
      return base.getClass();
    }
  }
Abstract the base class to Set if it implements Set (instead of using the concrete class as the
type). Fix for #41249: Prevents the class ResultsBag.SetView from being serialized to an older
version client.

This kind of abstraction could be done in the future for Lists, etc., as well, if desired, but
there is no requirement for this at this time
geode-core/src/main/java/org/apache/geode/cache/query/internal/ResultsCollectionWrapper.java