Fix for ~suv's test case in comment #2. Update the resource connection when the document is replaced.
Fix for ~suv's test case in comment #2.
Update the resource connection when the document is replaced.