}
private void deleteApplicationDescription(JTree tree) throws Exception {
if (askQuestion("Application descriptions",
"Are you sure that you want to remove all application descriptions in this registry?")) {
AiravataRegistry registry = getRegistry();
List<ApplicationDeploymentDescriptionWrap> descriptions = getApplicationDeploymentDescriptions()
.getDescriptions();
for (ApplicationDeploymentDescriptionWrap descriptionWrap : descriptions) {
registry.deleteDeploymentDescription(descriptionWrap.getService(), descriptionWrap.getHost(),
descriptionWrap.getDescription().getType().getApplicationName().getStringValue());
}
refresh();
reloadTreeNode(tree, this);
}