code: private boolean isCached(I_CmsLruCacheObject theCacheObject) {
  
          if ((theCacheObject == null) || (m_objectCount == 0)) {
              // the cache is empty or the object is null (which is never cached)
              return false;
          }
  
          I_CmsLruCacheObject nextObj = theCacheObject.getNextLruObject();
          I_CmsLruCacheObject prevObj = theCacheObject.getPreviousLruObject();
  
          if ((nextObj != null) || (prevObj != null)) {
              // the object has either a predecessor or successor in the linked
              // list of all cached objects, so it is inside the cache
              return true;
          }
  
          // both nextObj and preObj are null
          if ((m_objectCount == 1)
              && (m_listHead != null)
              && (m_listTail != null)
              && m_listHead.equals(theCacheObject)
              && m_listTail.equals(theCacheObject)) {
              // the object is the one and only object in the cache
              return true;
          }
  
          return false;
      }
docs: Test if a given object resides inside the cache.<p>
  
  @param theCacheObject the object to test
  @return true if the object is inside the cache, false otherwise