ion by providing a MessageHandler to the
 session, and can send messages to the other end of the conversation by means of the RemoteEndpoint object
 obtained from this session.
 <p>
 Once the session is closed, it is no longer valid for use by applications. Calling any of
 its methods (with the exception of the close() methods)
 once the session has been closed will result in an <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface