private void load(InputStream stream) {
        try {
            String xmlContent = IOUtils.toString(stream, Charset.forName("UTF-8"));

            MappingsDefinition result = factory.readXML(xmlContent, MappingsDefinition.class);
            if (result == null) {
                LOG.error("Failed to load custom xml mappings for: {}", xmlContent);
            } else {
                factory.validateXML(xmlContent);

                mappingsDefinitions.add(new ELMappingsDefinition(elEngine, result));

                LOG.info("Successfully loaded custom xml mapping.");
            }
        } catch (IOException ex) {
            MappingUtils.throwMappingException(ex);
        } catch (SAXException ex) {
            MappingUtils.throwMappingException(ex);
        }
    }
Load the XML file from the stream

@param stream stream to xml file/content - caller must close
core/src/main/java/com/github/dozermapper/core/builder/xml/BeanMappingXMLBuilder.java