code: private boolean isCollectionClass(Class<?> clazz) {
          if (clazz == RESTBaseEntityUpdateCollectionV1.class || clazz == RESTBaseEntityCollectionV1.class) {
              return true;
          } else if (clazz.getSuperclass() != null) {
              return isCollectionClass(clazz.getSuperclass());
          } else {
              return false;
          }
      }
docs: Checks if a class is or extends the REST Base Collection class.
  
  @param clazz The class to be checked.
  @return True if the class is or extends