private DocumentBuilder getDocumentBuilder() throws ParserConfigurationException {
        if(documentBuilder==null) {
            DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
            documentBuilder = documentBuilderFactory.newDocumentBuilder();
            documentBuilder.setErrorHandler(getErrorHandler());
            documentBuilder.setEntityResolver(getEntityResolver());
        }
        return documentBuilder;
    }