public DownloadManager(MavenConfiguration configuration, ExecutorService executor) throws MalformedURLException {
this.configuration = configuration;
this.executor = executor;
String karafRoot = System.getProperty("karaf.home", "karaf");
String karafData = System.getProperty("karaf.data", karafRoot + "/data");
this.cache = new MavenRepositoryURL("file:" + karafData + File.separator + "maven" + File.separator + "agent" + "@snapshots");
this.system = new MavenRepositoryURL("file:" + karafRoot + File.separator + "system" + "@snapshots");
this.tmpPath = new File(karafData, "tmp");
}