for (VersionLister lister : versionListers) {
visitors.add(lister.newVisitor(module, dest, result));
}
return new VersionPatternVisitor() {
public void visit(ResourcePattern pattern, IvyArtifactName artifact) throws ResourceException {
ResourceNotFoundException failure = null;
for (VersionPatternVisitor list : visitors) {
try {
list.visit(pattern, artifact);
return;
} catch (ResourceNotFoundException e) {