public boolean triggerAction(JTree tree, String action) throws Exception {
if (action.equals(DeleteAction.ID)) {
deleteHostDescription(tree);
return true;
} else if (action.equals(AddAction.ID)) {
HostDescriptionDialog hostDescriptionDialog = new HostDescriptionDialog(getXBayaEngine());
hostDescriptionDialog.open();
if (hostDescriptionDialog.isHostCreated()) {
refresh();
reloadTreeNode(tree, this);
}
return true;
}