archive.toExternalForm().endsWith("oar")) {
OAR oar = new OAR(archive);
String dirName = oar.getCompoundName();
if(dirName==null)
throw new IOException("Not an OAR");
StagedData artifact = new StagedData();
artifact.setLocation(archive.toExternalForm());
artifact.setInstallRoot(dirName);
artifact.setUnarchive(true);
DownloadManager downloadMgr =
new DownloadManager(FileUtils.getFilePath(installDir), artifact);
DownloadRecord record = downloadMgr.download();
return(record);
} else {