Hello,<br>Let&#39;s say I have some implementation of a CommandService (for example StatefulSessionCommandService). After I finish working with this CommandService, I want to correctly &#39;destroy&#39; this object. Since it contains a stateful rule session, I believe this session needs to be disposed. What is the right way to do it?<br>

<br>I was thinking about implementing a DisposeCommand that will simply call session.dispose() in its execute method. Is this a valid solution?<br><br>Best Regards,<br>Michal<br>