See org.hibernate.search.v6poc.entity.orm.impl.HibernateSearchContextService#getCurrentWorker: currently it's a mess...