// check existing relationships
for (final RelationshipInterface rel : outgoingRels) {
if (rel.getTargetNode().equals(targetNode)) {
throw new FrameworkException(getClass().getSimpleName(), new DuplicateRelationshipToken("This relationship already exists"));
}
}
}
}