DELTASPIKE-420 Refactored JPA-module hook for externally resolved EM