if (localFile != null) {
ExternalResourceMetaData metaData = null;
if (artifactOrigin instanceof ArtifactOriginWithMetaData) {
metaData = ((ArtifactOriginWithMetaData) artifactOrigin).getMetaData();
}
<BUG>return new FileBackedArtifactResolveResult(localFile, metaData);
} else {
return new BrokenArtifactResolveResult(new ArtifactNotFoundException(artifact));
}</BUG>
}

if (localFile != null) {
ExternalResourceMetaData metaData = null;
if (artifactOrigin instanceof ArtifactOriginWithMetaData) {
metaData = ((ArtifactOriginWithMetaData) artifactOrigin).getMetaData();
