Getting replySubject from MEvent


I am developing a custom adapter. I have created a class that extends MEventListener. SDK API calls method onEvent in my class and passes MEvent object as a parameter into call. How can I extract replySubject from that MEvent object? I failed to find this information in SDK docs. I have found that I can downcast Mevent to MEventData and then call sendReply. I suppose, it should lead to reply being sent back to the sender using replySubject. But I need to somehow extract replySubject as I need it for further processing and then pass it to other method. It is possible to do it using RV API but how can I do it with SDK API?


(1) Answer