code: public Optional<CacheHit<Entity>> getIfPresent(EntityType entityType, Object id) {
      EntityKey key = EntityKey.create(entityType, id);
      return Optional.ofNullable(cache.getIfPresent(key))
          .map(cacheHit -> hydrate(cacheHit, entityType));
    }
docs: Retrieves an entity from the cache if present.
  
  @param entityType EntityType of the entity to retrieve
  @param id id value of the entity to retrieve
  @return Optional {@link CacheHit<Entity>} with the result from the cache, empty if no record of
  the entity is present in the cache