code: public <T> void evict(T entity) {
          DocumentInfo documentInfo = documentsByEntity.get(entity);
          if (documentInfo != null) {
              documentsByEntity.remove(entity);
              documentsById.remove(documentInfo.getId());
          }
  
          deletedEntities.remove(entity);
          if (_countersByDocId != null) {
              _countersByDocId.remove(documentInfo.getId());
          }
      }
docs: Evicts the specified entity from the session.
  Remove the entity from the delete queue and stops tracking changes for this entity.
  
  @param <T>    entity class
  @param entity Entity to evict