code: public ORecordInternal<?> findRecord(final ORID rid) {
      if (!isEnabled())
        // DELEGATE TO THE 2nd LEVEL CACHE
        return null; // secondary.retrieveRecord(rid);
  
      ORecordInternal<?> record;
      underlying.lock(rid);
      try {
        record = underlying.get(rid);
  
        if (record == null) {
          // DELEGATE TO THE 2nd LEVEL CACHE
          record = secondary.retrieveRecord(rid);
  
          if (record != null)
            // STORE IT LOCALLY
            underlying.put(record);
        }
      } finally {
        underlying.unlock(rid);
      }
  
      OProfiler.getInstance().updateCounter(record != null ? CACHE_HIT : CACHE_MISS, 1L);
  
      return record;
    }
docs: Looks up for record in cache by it's identifier. Optionally look up in secondary cache and update primary with found record
  
  @param rid
  unique identifier of record
  @return record stored in cache if any, otherwise - {@code null}