I want to develop a logic which finds the document using "findDocumentByKeyValue" and if such document not found then i want to create the document. For this use case i need to write Document creation code in "onException" of "findDocumentByKeyValue" method. Now problem is whnever coding flow enters into the "onException" connection gets lost with error "Should stop return ......Missed 3 beats" something like this.
Is there any solution for this ??