/* */
/* */ final XmlOutput createXmlOutput(Result result)
/* */ throws JAXBException
/* */ {
/* 179 */ if ((result instanceof SAXResult)) {
/* 180 */ return new SAXOutput(((SAXResult)result).getHandler());
/* */ }
/* 182 */ if ((result instanceof DOMResult)) {
/* 183 */ Node node = ((DOMResult)result).getNode();
/* */
/* 185 */ if (node == null) {
/* 186 */ Document doc = JAXBContextImpl.createDom();
/* 187 */ ((DOMResult)result).setNode(doc);
/* 188 */ return new SAXOutput(new SAX2DOMEx(doc));
/* */ }
/* 190 */ return new SAXOutput(new SAX2DOMEx(node));
/* */ }
/* */
/* 193 */ if ((result instanceof StreamResult)) {
/* 194 */ StreamResult sr = (StreamResult)result;
/* */