private final ExternalResourceResolver resolver;
public ExternalResourceResolverAdapter(ExternalResourceResolver resolver) {
super(resolver);
this.resolver = resolver;
}
<BUG>public ArtifactResolveResult download(Artifact artifact) {
EnhancedArtifactDownloadReport artifactDownloadReport = resolver.download(artifact);</BUG>
if (downloadFailed(artifactDownloadReport)) {
<BUG>return new BrokenArtifactResolveResult(new ArtifactResolveException(artifactDownloadReport.getArtifact(), artifactDownloadReport.getFailure()));

}</BUG>
ArtifactOriginWithMetaData artifactOrigin = artifactDownloadReport.getArtifactOrigin();

private final ExternalResourceResolver resolver;
public ExternalResourceResolverAdapter(ExternalResourceResolver resolver) {
super(resolver);
this.resolver = resolver;
}
public void download(Artifact artifact, BuildableArtifactResolveResult result) {
EnhancedArtifactDownloadReport artifactDownloadReport = resolver.download(artifact);
if (downloadFailed(artifactDownloadReport)) {
result.failed(new ArtifactResolveException(artifactDownloadReport.getArtifact(), artifactDownloadReport.getFailure()));
return;
}
ArtifactOriginWithMetaData artifactOrigin = artifactDownloadReport.getArtifactOrigin();
