private Configuration findConfiguration(List<MappingFileData> mappingFileDataList) {
        Configuration globalConfiguration = null;
        for (MappingFileData mappingFileData : mappingFileDataList) {
            if (mappingFileData.getConfiguration() != null) {
                //Only allow 1 global configuration
                if (globalConfiguration != null) {
                    MappingUtils
                            .throwMappingException("More than one global configuration found.  "
                                                   + "Only one global configuration block (<configuration></configuration>) can be specified across all mapping files.  "
                                                   + "You need to consolidate all global configuration blocks into a single one.");
                }
                globalConfiguration = mappingFileData.getConfiguration();
            }
        }

        //If global configuration was not specified, use defaults
        if (globalConfiguration == null) {
            globalConfiguration = new Configuration();
        }

        return globalConfiguration;
    }
Internal class that loads and parses custom xml mapping files into ClassMap objects. The ClassMap objects returned
from the load method are fully decorated and ready to be used by the internal mapping engine. Only intended for
internal use.
core/src/main/java/com/github/dozermapper/core/loader/CustomMappingsLoader.java