private synchronized void releaseMessageId(int msgId){
  inUseMsgIds.remove(new Integer(msgId));
}

private synchronized void releaseMessageId ( int msgId ) { inUseMsgIds . remove ( new Integer ( msgId ) ) ; }
releases a message id back into the pool of available message ids . if the supplied message id is not in use , then nothing will happen .
