There is actually a "nesting" connector that you can use to visualize this in a diagram.
The owner end looks like a little circle with a vertical and horizontal line in the inside of the circle to the edge, forming a cross.
So if you would write a script to create those relations I wouldn't use composition, but the nesting connector.
Geert