code: private Long transactionId(URI location) {
  		return Long.valueOf( location.getPath().substring( location.getPath().lastIndexOf( "/" ) + 1 ) );
  	}
docs: The location should look something like: http://localhost:7474/db/data/transaction/{txId}