public void arcDeleted(Object nodeId, Object targetNodeId, Object arcId) {
DataObject source = findObject(nodeId);
// find whether this is to-one or to-many
ObjEntity sourceEntity = context.getEntityResolver().lookupObjEntity(source);
Relationship relationship = sourceEntity.getRelationship(arcId.toString());
DataObject target = findObject(targetNodeId);
if (relationship.isToMany()) {
source.removeToManyTarget(relationship.getName(), target, false);
}
else {
source.setToOneTarget(relationship.getName(), null, false);
}
}