private Document getDocument(FileResource resource) throws SAXException, IOException {
        return documentBuilder.parse(resource.getFile());
    }
private Document getDocument ( FileResource resource ) throws SAXException , IOException { return documentBuilder . parse ( resource . getFile ( ) ) ; }
Parses the xml file with a {@link DocumentBuilder}.

@param resource
the file to read

@return a {@link Document}

@throws SAXException
see {@link DocumentBuilder#parse(java.io.File)}
@throws IOException
see {@link DocumentBuilder#parse(java.io.File)}