code: protected void doChecks(CacheItem item, List<CacheItem> itemsToRefresh) {
          boolean expired;
          boolean willBeRefreshed;
  
          try {
              expired = checkForExpiration(item);
              if (expired) {
                  if (logger.isDebugEnabled()) {
                      logger.debug(item + " was removed because it expired");
                  }
              } else {
                  willBeRefreshed = checkForRefresh(item, itemsToRefresh);
                  if (willBeRefreshed) {
                      if (logger.isDebugEnabled()) {
                          logger.debug(item + " will be refreshed");
                      }
                  }
              }
          } catch (Exception ex) {
              logger.warn("Exception while checking " + item + " for expiration/refresh", ex);
          }
      }
docs: Checks if the given {@link CacheItem} has expired or needs to be refreshed.
  
  @param item
  @param itemsToRefresh the list of items where to put the specified item if it needs to be refreshed