{
// If the session has not been establish, or is closed, we get out immediately
checkSession();
// Create the UnbindRequest
UnBindRequestCodec unbindRequest = new UnBindRequestCodec();
// Creates the messageID and stores it into the
// initial message and the transmitted message.
int newId = messageId.incrementAndGet();
unbindRequest.setMessageId( newId );
LOG.debug( "-----------------------------------------------------------------" );
LOG.debug( "Sending Unbind request \n{}", unbindRequest );
// Send the request to the server