if (options.getResolveId() == null) {
options.setResolveId(ResolveOptions.getDefaultResolveId(moduleId));
}
ResolutionCacheManager cacheManager = getCache();
String[] confs = getConfs(mrid, options);
String destIvyPattern = IvyPatternHelper.substituteVariables(options.getDestIvyPattern(),
settings.getVariables());
// find what we must retrieve where
// ArtifactDownloadReport source -> Set (String copyDestAbsolutePath)
final Map artifactsToCopy = new HashMap();
// String copyDestAbsolutePath -> Set (ArtifactRevisionId source)
final Map conflictsMap = new HashMap();
// String copyDestAbsolutePath -> Set (ArtifactDownloadReport source)
final Map conflictsReportsMap = new HashMap();
// String copyDestAbsolutePath -> Set (String conf)
final Map conflictsConfMap = new HashMap();
XmlReportParser parser = new XmlReportParser();
for (int i = 0; i < confs.length; i++) {
final String conf = confs[i];
File report = cacheManager.getConfigurationResolveReportInCache(options.getResolveId(),
conf);
parser.parse(report);
Collection artifacts = new ArrayList(Arrays.asList(parser.getArtifactReports()));
if (destIvyPattern != null) {