private Document readWsdlInputStream(InputStream wsdlStream) throws ParserConfigurationException, IOException, SAXException {
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        factory.setNamespaceAware(true);
        DocumentBuilder documentBuilder;
        documentBuilder = factory.newDocumentBuilder();
        return documentBuilder.parse(wsdlStream);
    }
Read the wsdl from input stream (xml)

@param wsdlStream the wsdl(xml) as stream
@return the wsdl as document
manager/api/rest-impl/src/main/java/io/apiman/manager/api/schema/format/WsdlRewriter.java