throw new IllegalStateException("Must specify component type and artifacts to query.");
}
List<ResolutionAwareRepository> repositories = CollectionUtils.collect(repositoryHandler, Transformers.cast(ResolutionAwareRepository.class));
ConfigurationInternal configuration = configurationContainer.detachedConfiguration();
final RepositoryChain repositoryChain = ivyFactory.create(configuration, repositories, metadataHandler.getComponentMetadataProcessor());
final ArtifactResolver artifactResolver = new ErrorHandlingArtifactResolver(repositoryChain.getArtifactResolver());
return lockingManager.useCache("resolve artifacts", new Factory<ArtifactResolutionResult>() {
public ArtifactResolutionResult create() {
Set<ComponentResult> componentResults = Sets.newHashSet();