private void checkMessageID ( Message message ) { if ( ! MessageUtils . isOutbound ( message ) ) return ; AddressingProperties maps = ContextUtils . retrieveMAPs ( message , false , MessageUtils . isOutbound ( message ) ) ; if ( maps == null ) { maps = new AddressingProperties ( ) ; } if ( maps . getMessageID ( ) == null ) { String messageID = ContextUtils . generateUUID ( ) ; boolean isRequestor = ContextUtils . isRequestor ( message ) ; maps . setMessageID ( ContextUtils . getAttributedURI ( messageID ) ) ; ContextUtils . storeMAPs ( maps , message , ContextUtils . isOutbound ( message ) , isRequestor ) ; } }
check if MessageID exists in the message if not only generate new MessageID for outbound message .