code: @SuppressWarnings("rawtypes")
      protected List cacheLoadOrStore(List<Object> loadedObjects) {
          if (loadedObjects.isEmpty()) {
              return loadedObjects;
          }
          if (!(loadedObjects.get(0) instanceof Entity)) {
              return loadedObjects;
          }
  
          List<Entity> filteredObjects = new ArrayList<Entity>(loadedObjects.size());
          for (Object loadedObject : loadedObjects) {
              Entity cachedEntity = cacheLoadOrStore((Entity) loadedObject);
              filteredObjects.add(cachedEntity);
          }
          return filteredObjects;
      }
docs: ///////////////////////////////////////////////////