WorkflowTreeItem itm = (WorkflowTreeItem) items[0].getData();
String type = itm.getType();
if (type == Constant.Workflow) {
WorkflowGUI wfGUI = (WorkflowGUI) itm;
WorkflowMaker savedState = new WorkflowMaker();
savedState.save(wfGUI.getWorkflow());
}
}