title: Fail to handle transaction on java-rest-binding of Neo4j
body: <p>I use <a href="https://github.com/neo4j/java-rest-binding" rel="nofollow">Java REST binding</a> of Neo4j on my project, but I face a problem on handling transactions.</p>
  
  <p>When the name is <code>Error</code>, it can success insert node into DB..., event if I take off <code>Transaction</code> control, it still works.</p>
  
  <pre><code>final RestAPI api = new RestAPIFacade("http://localhost:7474/db/data");
  final RestCypherQueryEngine engine = new RestCypherQueryEngine(api);
  
  Transaction tx = api.beginTx();
  try {
      String name = "Error";
      Map&lt;String, Object&gt; subMap = new HashMap&lt;String, Object&gt;();
      subMap.put("name", name);
      subMap.put("age", 17);
      Node node = api.createNode(subMap);
      Label label = DynamicLabel.label("Student");
      node.addLabel(label);
  
      if("Error".equals(name)) {
          tx.failure();
      }
      else {
          tx.success();
      }
  } finally {
      tx.finish();
  }
  </code></pre>