public DebianDependency searchPkgContainingPom(Dependency dependency) {
   // TODO shouldn't we use the mavenRepo property of DependencySolver for the mavenRepo path?
   return searchPkg(
       new File(
           "/usr/share/maven-repo/"
               + dependency.getGroupId().replace('.', '/')
               + "/"
               + dependency.getArtifactId()),
       ".pom");
 }
 public List<DebianDependency> addDocDependencies(
     Collection<DebianDependency> debianDeps,
     Map<DebianDependency, Dependency> versionedPackagesAndDependencies) {
   List<DebianDependency> docDeps = new ArrayList<DebianDependency>();
   for (DebianDependency dependency : debianDeps) {
     Dependency runtimeDependency = versionedPackagesAndDependencies.get(dependency);
     if (runtimeDependency != null && runtimeDependency.isPom()) {
       continue;
     }
     DebianDependency docPkg = searchJavaDocPkg(dependency);
     if (docPkg != null) {
       docDeps.add(docPkg);
     }
   }
   return docDeps;
 }
 public DebianDependency searchPkgContainingJar(Dependency dependency) {
   return searchPkg(new File("/usr/share/java/" + dependency.getArtifactId() + ".jar"));
 }