VltContext vCtx;
if (type.equals("platform")) {
if (!localFile.exists()) {
localFile.mkdirs();
}
exporter = new PlatformExporter(localFile);
((PlatformExporter) exporter).setPruneMissing(cl.hasOption(optPrune));
vCtx = app.createVaultContext(localFile);
} else if (type.equals("jar")) {
exporter = new JarExporter(localFile);
vCtx = app.createVaultContext(localFile.getParentFile());