docs: @Nullable
      private SessionFactory unwrap(EntityManagerFactory entityManagerFactory) {
          try {
              return entityManagerFactory.unwrap(SessionFactory.class);
          } catch (PersistenceException ex) {
              return null;
          }
      }