public MappingFileData read(URL url) {
        MappingFileData result = null;
        InputStream stream = null;
        try {
            stream = url.openStream();
            result = streamReader.read(stream);
        } catch (IOException e) {
            log.error("Error while loading dozer mapping file url: [" + url + "]", e);
            MappingUtils.throwMappingException(e);
        } finally {
            try {
                if (stream != null) {
                    stream.close();
                }
            } catch (IOException e) {
                MappingUtils.throwMappingException(e);
            }
        }
        return result;
    }
Internal class that reads and parses a single custom mapping xml file into raw ClassMap objects. Only intended for
internal use.
core/src/main/java/com/github/dozermapper/core/loader/xml/MappingFileReader.java