docs: public boolean isPersistent(DbEntity dbEntity) {
      CachedDbEntity cachedDbEntity = getCachedEntity(dbEntity);
      if(cachedDbEntity == null) {
        return false;
      } else {
        return cachedDbEntity.getEntityState() == PERSISTENT;
      }
    }