}
public ResolvedArtifact newArtifact(ResolvedConfigurationIdentifier owner, ComponentResolveMetaData component, ComponentArtifactMetaData artifact, ArtifactResolver artifactResolver) {
Factory<File> artifactSource = new LazyArtifactSource(artifact, component.getSource(), artifactResolver);
long id = idGenerator.generateId();
ResolvedArtifact newArtifact = new DefaultResolvedArtifact(new DefaultResolvedModuleVersion(owner.getId()), artifact.getName(), artifactSource, id);
artifacts.put(id, newArtifact);
return newArtifact;
}