code: private Artifact getResolvedArtifact( String groupId, String artifactId, String version )
          throws ArtifactNotFoundException, ArtifactResolutionException
      {
          Artifact artifact = factory.createArtifact( groupId, artifactId, version, Artifact.SCOPE_RUNTIME, "jar" );
          resolver.resolve( artifact, remoteRepos, localRepo );
          return artifact;
      }
docs: Private utility methods