Node targetNode = getOrCreateNode(target, targetTypeName);
getOrCreateRelationship(targetTypeNode, targetNode, Named.relation(REL_TYPE_ALL));
getOrCreateRelationship(sourceNode, targetNode, Named.relation(type));
tx.success();
} catch(Exception e) {
tx.failure();
throw new RuntimeException(
"Could not add relation of type " + type + " between " + source + " and " + target, e);
} finally {