public MappingFileData read(InputStream xmlStream) {
        MappingFileData result = null;
        try {
            Document document = documentBuilder.parse(xmlStream);
            result = parser.read(document);
        } catch (Throwable e) {
            log.error("Error while loading dozer mapping InputStream: ["
                      + xmlStream + "]", e);
            MappingUtils.throwMappingException(e);
        }
        return result;
    }
Internal class that reads and parses a single custom mapping XML stream into
raw ClassMap objects. Only intended for internal use.
core/src/main/java/com/github/dozermapper/core/loader/xml/MappingStreamReader.java