public boolean triggerAction(JTree tree, String action) throws Exception {
if (action.equals(DeleteAction.ID)) {
deleteServiceDescription(tree);
return true;
} else if (action.equals(AddAction.ID)) {
DeploymentDescriptionDialog serviceDescriptionDialog = new DeploymentDescriptionDialog(null, getRegistry());
serviceDescriptionDialog.open();
// ServiceDescriptionDialog serviceDescriptionDialog = new ServiceDescriptionDialog(getRegistry());
// serviceDescriptionDialog.open();
if (serviceDescriptionDialog.isServiceCreated()) {
refresh();
reloadTreeNode(tree, this);
}
return true;
}