try {
CypherParser parser = new CypherParser();
ExecutionEngine engine = new ExecutionEngine(this.graphDb);
Query query = parser.parse("start n=(procedures, 'procedureId:" + parentProcedureId + "') return n");
ExecutionResult result = engine.execute(query);
Iterator<Node> n_column = result.columnAs("n");
Node parentProcedure = n_column.next();
query = parser.parse("start n=(procedures, 'procedureId:" + childProcedureId + "') return n");
result = engine.execute(query);
n_column = result.columnAs("n");
Node childProcedure = n_column.next();
parentProcedure.createRelationshipTo(childProcedure, EmergencyRelationshipType.SUB);
tx.success();