if (!directory.exists()) {
directory.mkdirs();
}
if (!getRemoteArtifact(dep, destinationFile) && !destinationFile.exists()) {
throw new DownloadFailedException(dep);
}
downloadedArtifacts.put(dependencyConflictId, dep);
} else {
Dependency d = downloadedArtifacts.get(dependencyConflictId);