OK, you are on the right path, but what you missed is the fact that you cannot use the same DocumentManager method for opening a transaction in an external document. I don't think that it was coded with that possibility in mind, and it just doesn't handle it well.