@FXML
    void onRepositoryChanged(ActionEvent event) {
      // TODO add your handling code here:
      try {
        String wrkDir = (String)ctrlRepository.getValue();
        ResultSet rs = Repo.fetchByNeve(wrkDir);
        String branch = new String();
        ObservableList<String> branchList = ctrlBranch.getItems();
        if (branchList.isEmpty()) {
            branchList = FXCollections.observableArrayList();
        }
        while (rs.next()) {
            Repo adat = new Repo(rs);
            ctrlIssueId.setText(adat.getIssueId());
            ctrlZipFilePrefix.setText(adat.getZipPrefix());
            branch = adat.getBranch();
        }
        GitRepo repo = new GitRepo(wrkDir);
        HashMap<ObjectId, String> branches = repo.getBranches();
        Iterator it = branches.values().iterator();
        while (it.hasNext()) {
          String br = (String)it.next();
          branchList.add(br);
        }
        if (branch != null && !branch.isEmpty()) {
            ctrlBranch.setValue(branch);
        }
        ctrlBranch.setItems(branchList);
      } catch (SQLException ex) {
        Logger.getLogger(GitSnapshotMain.class.getName()).log(Level.SEVERE, null, ex);
      } catch (IOException ex) {
        Logger.getLogger(GitSnapshotMain.class.getName()).log(Level.SEVERE, null, ex);
      }
    }