/* 90 */ Source source = (Source)obj;
/* 91 */ if (this.mode == Service.Mode.PAYLOAD)
/* */ {
/* 93 */ reqMsg = (SOAPMessageImpl)factory.createMessage();
/* 94 */ SOAPBodyImpl soapBody = (SOAPBodyImpl)reqMsg.getSOAPBody();
/* 95 */ SOAPContentElement bodyElement = new SOAPBodyElementDoc(SOAPBodyElementDoc.GENERIC_PARAM_NAME);
/* 96 */ bodyElement = (SOAPContentElement)soapBody.addChildElement(bodyElement);
/* 97 */ XMLFragment xmlFragment = new XMLFragment(source);
/* 98 */ bodyElement.setXMLFragment(xmlFragment);
/* */
/* 101 */ if (this.validateDispatch)
/* */ {
/* 104 */ xmlFragment.toElement();
/* */ }
/* */ }
/* */
/* 108 */ if (this.mode == Service.Mode.MESSAGE)
/* */ {
/* 110 */ TransformerFactory tf = TransformerFactory.newInstance();
/* 111 */ ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
/* 112 */ tf.newTransformer().transform(source, new StreamResult(baos));
/* 113 */ reqMsg = (SOAPMessageImpl)factory.createMessage(null, new ByteArrayInputStream(baos.toByteArray()));
/* */ }
/* */ }
/* 116 */ else if (this.jaxbContext != null)
/* */ {
/* 118 */ Marshaller marshaller = this.jaxbContext.createMarshaller();
/* 119 */ marshaller.setProperty("jaxb.fragment", Boolean.valueOf(true));
/* 120 */ ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
/* 121 */ marshaller.marshal(obj, baos);
/* */
/* 123 */ reqMsg = (SOAPMessageImpl)factory.createMessage();
/* 124 */ SOAPBodyImpl soapBody = (SOAPBodyImpl)reqMsg.getSOAPBody();
/* 125 */ SOAPContentElement bodyElement = new SOAPBodyElementDoc(SOAPBodyElementDoc.GENERIC_PARAM_NAME);
/* 126 */ bodyElement = (SOAPContentElement)soapBody.addChildElement(bodyElement);
/* 127 */ StreamSource source = new StreamSource(new ByteArrayInputStream(baos.toByteArray()));
/* 128 */ bodyElement.setXMLFragment(new XMLFragment(source));
/* */ }
/* */ }
/* */ catch (RuntimeException rte)
/* */ {
/* 133 */ throw rte;