public static Document buildDocument(DocumentBuilder withBuilder,
                                         InputSource fromSource) throws IOException, SAXException {
        return withBuilder.parse(fromSource);
    }
public static Document buildDocument ( DocumentBuilder withBuilder , InputSource fromSource ) throws IOException , SAXException { return withBuilder . parse ( fromSource ) ; }
Utility method to build a Document using a specific DocumentBuilder
and a specific InputSource
@param withBuilder
@param fromSource
@return Document built
@throws SAXException
@throws IOException