code: 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);
          }
      }
docs: Helper method that marshalls the given message.
  
  @param message message the marshall and serialize
  
  @return marshalled message
  
  @throws MessageEncodingException thrown if the give message can not be marshalled into its DOM representation