for (Iterator iter = searchResult.getHits().iterator(); iter.hasNext();) {
Hit hit = (Hit) iter.next();
if (org.equals(hit.getOrganisation()) && name.equals(hit.getModule())) {
Collection revisions = hit.getRevisions();
for (Iterator iterator = revisions.iterator(); iterator.hasNext();) {
HitRevision s = (HitRevision) iterator.next();
if (rev.equals(s.getRevision())) {
result.add(s.getPath().substring(s.getPath().indexOf("sources") + "sources".length() + 1));
}
}
}
}
String[] array = (String[]) result.toArray(new String[result.size()]);