/**
* In ORM 5.2, it is not possible anymore to call getTransaction() in a JTA environment anymore.
*
* A lot of our shared tests rely on this and we want to keep them working for Neo4j.
*/
@Override
public Transaction getTransaction() {
return ( (SharedSessionContractImplementor) delegate ).accessTransaction();
}