saveDocument: method seems to be asynchronous.