public class RepositoryUtils {
public static Set<PathToDirPair> getPackageNames(List<RefToDirPair> references, String repositorypath) throws IOException {
Set<PathToDirPair> retval = new HashSet<PathToDirPair>();
for (RefToDirPair reftodir : references) {
retval.add(new PathToDirPair((new SplitId(reftodir.getRef().getId())).pkg,
reftodir.getDefaultdirectory(),FileType.forReference(reftodir.getRef()))
.normalizePath(repositorypath));
}
return retval;
}