private DocumentBuilder createDocumentBuilder(DocumentBuilderFactory factory) throws ParserConfigurationException {
        DocumentBuilder docBuilder = factory.newDocumentBuilder();
        docBuilder.setErrorHandler(new DozerDefaultHandler());
        docBuilder.setEntityResolver(new DozerResolver(beanContainer));
        return docBuilder;
    }
Create a JAXP DocumentBuilder that this bean definition reader will use for parsing XML documents. Can be
overridden in subclasses, adding further initialization of the builder.

@param factory the JAXP DocumentBuilderFactory that the DocumentBuilder should be created with
@return the JAXP DocumentBuilder
@throws javax.xml.parsers.ParserConfigurationException if thrown by JAXP methods
core/src/main/java/com/github/dozermapper/core/loader/xml/XMLParserFactory.java