URL targetURL = file.toURI().toURL();
// delegate unpacked archives to SystemDir handler
if (deployment.isDirectory())
return new SystemDir(targetURL);
// if it's a file delegate to ZipDir handler
return new ZipDir(targetURL);
}
catch (MalformedURLException e) {