private toolbarAction get_parentAction() {
   Vector<Vector<String>> resultRows = new Vector<Vector<String>>();
   toolbarAction action = null;
   try {
     String currentDocumentType = BungeniEditorProperties.getEditorProperty("activeDocumentMode");
     dbSettings.Connect();
     QueryResults qr =
         dbSettings.QueryResults(
             SettingsQueryFactory.Q_FETCH_ACTION_BY_NAME(
                 currentDocumentType, this.m_subAction.parent_action_name()));
     dbSettings.EndConnect();
     if (qr == null) {
       throw new Exception("QueryResults returned null");
     }
     if (qr.hasResults()) {
       HashMap columns = qr.columnNameMap();
       // child actions are present
       // call the result nodes recursively...
       resultRows = qr.theResults();
       // should alwayrs return a single result
       Vector<java.lang.String> tableRow = new Vector<java.lang.String>();
       tableRow = resultRows.elementAt(0);
       action = new toolbarAction(tableRow, columns);
     }
   } catch (Exception ex) {
     log.error("getParentSection: " + ex.getMessage());
   } finally {
     return action;
   }
 }
 private void btn_initdebate_selectlogoActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btn_initdebate_selectlogoActionPerformed
   // TODO add your handling code here:
   String logoPath = "";
   logoPath = BungeniEditorProperties.getEditorProperty("logoPath");
   log.debug("logo path = " + logoPath);
   String strPath = DefaultInstanceFactory.DEFAULT_INSTALLATION_PATH();
   logoPath = strPath + File.separator + logoPath.replace('/', File.separatorChar);
   log.debug("logo path new = " + logoPath);
   JFileChooser chooser = new JFileChooser();
   chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
   File fLogoPath = new File(logoPath);
   chooser.setCurrentDirectory(fLogoPath);
   int nReturnVal = chooser.showOpenDialog(this);
   if (nReturnVal == JFileChooser.APPROVE_OPTION) {
     File file = chooser.getSelectedFile();
     m_strLogoFileName = file.getName();
     m_strLogoPath = file.getAbsolutePath();
     txt_initdebate_selectlogo.setText(m_strLogoFileName);
     // This is where a real application would open the file.
     log.debug("Opening: " + file.getName() + "." + "\n");
   } else {
     log.debug("Open command cancelled by user." + "\n");
   }
 } // GEN-LAST:event_btn_initdebate_selectlogoActionPerformed
 public void init() {
   super.init();
   initComponents();
   // default m_strLogoPath
   String logoPath = BungeniEditorProperties.getEditorProperty("logoPath");
   log.debug("logo path = " + logoPath);
   String strPath = DefaultInstanceFactory.DEFAULT_INSTALLATION_PATH();
   m_strLogoPath = strPath + File.separator + logoPath + File.separator + "default_logo.jpg";
   log.debug("InitDebateRecord:" + m_strLogoPath);
   dt_initdebate_timeofhansard.setModel(
       new SpinnerDateModel(new Date(), null, null, Calendar.HOUR));
   dt_initdebate_timeofhansard.setEditor(
       new JSpinner.DateEditor(dt_initdebate_timeofhansard, "HH:mm"));
   ((JSpinner.DefaultEditor) dt_initdebate_timeofhansard.getEditor())
       .getTextField()
       .setEditable(false);
   this.dt_initdebate_hansarddate.setInputVerifier(new DateVerifier());
   buildComponentsArray();
 }