[hibernate-issues] [JIRA] (HSEARCH-2689) Rework how the retrieval of the EntityManagerFactory works