}
public org.neo4j.graphdb.Transaction beginTx() {
RemoteCypherTransaction tx = cypherTransaction.get();
if (tx != null && tx.isActive()) {
tx.beginInner();
} else {
CypherTransaction newTx = restAPICypher.newCypherTransaction();
tx = new RemoteCypherTransaction(newTx);
cypherTransaction.set(tx);
}