if (mode == Service.Mode.PAYLOAD) {
// Input is Source in payload mode, need to wrap it
// with a SOAPMessage
try {
obj = newSOAPMessage(null, ((SoapMessage)message).getVersion());
DataWriter<Node> dataWriter = new NodeDataWriter();
dataWriter.write(source, ((SOAPMessage)obj).getSOAPBody());
} catch (Exception e) {
throw new Fault(new org.apache.cxf.common.i18n.Message("EXCEPTION_WRITING_OBJECT",
LOG), e);
}
} else {