public void setPayloadProperties ( BaseMessage message , Object msg ) { MessageDataDesc messageDataDesc = message . getMessageDataDesc ( null ) ; // Top level only if ( messageDataDesc != null ) { Map < String , Class < ? > > mapPropertyNames = messageDataDesc . getPayloadPropertyNames ( null ) ; if ( mapPropertyNames != null ) { for ( String strKey : mapPropertyNames . keySet ( ) ) { Class < ? > classKey = mapPropertyNames . get ( strKey ) ; this . setPayloadProperty ( message , msg , strKey , classKey ) ; } } } if ( message . get ( "Version" ) == null ) this . setPayloadProperty ( DEFAULT_VERSION , msg , "Version" , Float . class ) ; this . setPayloadProperty ( this . getTimeStamp ( ) , msg , "TimeStamp" , org . joda . time . DateTime . class ) ; // Current timestamp }
Move the standard payload properties from the message to the xml .