public PersistenceContext(String emfName, EntityManagerFactoryImpl emf, URI defaultURI) {
super();
this.emf = emf;
this.name = emfName;
if (getServerSession().hasExternalTransactionController()) {
transaction = new JTATransactionWrapper();
} else {
transaction = new ResourceLocalTransactionWrapper();
}
try {
this.jaxbContext = createDynamicJAXBContext(emf.getDatabaseSession());