}
XMLStreamWriter xsw = writerfactory.createXMLStreamWriter(os);
//DOMForest eats away the whitespace loosing all the indentation, so write it through
// indenting writer for better readability of fetched documents
IndentingXMLStreamWriter indentingWriter = new IndentingXMLStreamWriter(xsw);
wsdlPatcher.bridge(xsr, indentingWriter);
xsr.close();
xsw.close();
os.close();
options.addGeneratedFile(outFile);
return resolvedRootWsdl;