Rewrite oneline of artifact download to artifact = Artifact.search then artifact.download(path).