NameValidator.assertValidDirectoryName(app);
NameValidator.assertValidRootPackageName(app, newAppNamespace);
NodeImporter.importAppFromZip(new ZipFile(appZip), app, newAppNamespace);
app.deploy();
logger.println("Successfully imported '" + new File(appZipName).getName() + "' as new application '" + newAppName + "'");
logger.println(" " + app.dir().getAbsolutePath());
}
catch(InvalidDirectoryNameException | InvalidRootPackageNameException e) {