code: public static boolean checkIfClassVersionApplicable(Object cacheEntry, boolean useStructuredCache) {
          if (!useStructuredCache && cacheEntry instanceof CacheEntry) {
              return true;
          }
  
          if (useStructuredCache && cacheEntry instanceof Map) {
              return true;
          }
          return false;
      }
docs: Check if class version comparable.