@Before
 public void setUp() throws Exception {
   Transaction tx = neo4jTemplate.getGraphDatabase().beginTx();
   try {
     Neo4jHelper.cleanDb(neo4jTemplate);
   } finally {
     tx.success();
     tx.finish();
   }
   tx = neo4jTemplate.getGraphDatabase().beginTx();
   try {
     referenceNode = graphDatabase.getReferenceNode();
     createData();
   } finally {
     tx.success();
     tx.finish();
   }
 }
 @BeforeTransaction
 public void cleanDb() {
   Neo4jHelper.cleanDb(neo4jTemplate);
 }
 @BeforeTransaction
 public void beforeTransaction() {
   Neo4jHelper.cleanDb(template);
 }