public static AbstractMessage normalize ( Message srcMessage ) throws JMSException { // Already a native message ? if ( srcMessage instanceof AbstractMessage ) return ( AbstractMessage ) srcMessage ; return duplicate ( srcMessage ) ; }
Convert the message to native type if necessary