Depending on how often createEntityManager() is used from the helper, this function can probably be thrown into the JPAHelper as well