/** Cache is only used for remote repos; see issue #47. */ private Node fromRepositories( Iterable<CmrRepository> repositories, ArtifactContext context, boolean addLeaf) { log.debug("Looking for " + context); for (CmrRepository repository : repositories) { log.debug(" Looking in " + repository); if (!repository.supportsNamespace(context.getNamespace())) { log.debug(" -> does not support namespace " + context.getNamespace()); continue; } Node child = fromRepository(repository, context, addLeaf); if (child != null) { log.debug(" -> Found"); return child; } log.debug(" -> Not Found"); } log.debug(" -> Artifact " + context + " not found in any repository"); return null; }