@Override
    public void actionPerformed(ActionEvent e) {
        try {
          if (e.getSource() == this.view.getJbCancel()) {
              this.view.dispose();
            } else if (e.getSource() == this.view.getJbLoad()) {
                if (this.view.getJtTable().getSelectedRow() >= 0) {
                    int rowIndex = this.view.getJtTable().getSelectedRow();
                    Workflow wf = new Workflow(Integer.parseInt((String)this.view.getJtTable().getValueAt(rowIndex, 0)));
                    SimulationFrame simulationFrame = new SimulationFrame();
                    wf.InitWorkflow(true);
                    Shared.getInstance().setWf(wf);
                    SimulationFrameController simulationFrameController = new SimulationFrameController(simulationFrame);
                    simulationFrame.setActionListener(simulationFrameController);
                    if (((String)this.view.getJtTable().getValueAt(rowIndex, 3)).equals("YES")) {
                        Shared.getInstance().setAutorecover(true);
                    } else  {
                        Shared.getInstance().setAutorecover(false);
                    }
                    this.view.dispose();
                    this.view.getCaller().dispose();
                }
                
            } else {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
            }
        } catch (Exception ex) {
            //JOptionPane.showMessageDialog(null, "Error: "+ ex.getMessage(), "Autentification error" , JOptionPane.ERROR_MESSAGE);
            System.err.println(ex.getMessage());
        }
    }