Relationship relationship = createRelationshipUnlessExists( findNode( associationKey.getEntityKey() ), associationKey, rowKey );
applyTupleOperations( relationship.getEndNode(), action.getValue().getOperations() );
}
private Relationship createRelationshipUnlessExists(Node startNode, AssociationKey associationKey, RowKey rowKey) {
Relationship relationship = indexer.findRelationship( relationshipType( associationKey ), rowKey );
if ( relationship == null ) {
return createRelationship( startNode, associationKey, rowKey );
}
return relationship;
}