ArtifactIdentifier artifactIdentifier = createArtifactIdentifier(artifact);
long age = timeProvider.getCurrentTime() - cached.getCachedAt();
if (cached.isMissing()) {
if (!cachePolicy.mustRefreshArtifact(artifactIdentifier, null, age)) {
LOGGER.debug("Detected non-existence of artifact '{}' in resolver cache", artifact.getId());
<BUG>return new BrokenArtifactResolveResult(new ArtifactNotFoundException(artifact));
}</BUG>
} else {
File cachedArtifactFile = cached.getCachedFile();
if (!cachePolicy.mustRefreshArtifact(artifactIdentifier, cachedArtifactFile, age)) {

ArtifactIdentifier artifactIdentifier = createArtifactIdentifier(artifact);
long age = timeProvider.getCurrentTime() - cached.getCachedAt();
if (cached.isMissing()) {
if (!cachePolicy.mustRefreshArtifact(artifactIdentifier, null, age)) {
LOGGER.debug("Detected non-existence of artifact '{}' in resolver cache", artifact.getId());
result.notFound(artifact);
return;
}
} else {
File cachedArtifactFile = cached.getCachedFile();
if (!cachePolicy.mustRefreshArtifact(artifactIdentifier, cachedArtifactFile, age)) {
