protected Element marshallMessage ( XMLObject message ) throws MessageEncodingException { log . debug ( "Marshalling message" ) ; try { return XMLObjectSupport . marshall ( message ) ; } catch ( MarshallingException e ) { throw new MessageEncodingException ( "Error marshalling message" , e ) ; } }
Helper method that marshalls the given message .