neo4j/neo4j — pull request #1780 by tinwelint (2014-01-02 12:25:27+00:00)
Title: Avoids some use of synchronized map in PersistenceManager

o Instead of calling PersistenceManager#currentKernelTransaction() when
asserting the existence of a transaction, call the (now public)
#getCurrentTransaction())
o KernelStatement is aware of the NeoStoreTransaction it was created with
so that PersistenceManager can be avoided.

Going forward PersistenceManager should be deleted and each
NeoStoreTransaction should be tied closer to a kernel transaction. This
will be easier when all operations go through the Kernel API.