@SuppressWarnings("unchecked")
 private void addParamPanel(List panelList, AbstractParamDialog dialog) {
   AbstractParamPanel panel = null;
   String[] ROOT = {};
   for (int i = 0; i < panelList.size(); i++) {
     try {
       panel = (AbstractParamPanel) panelList.get(i);
       dialog.addParamPanel(ROOT, panel);
     } catch (Exception e) {
       // ZAP: Log the exception
       logger.error(e.getMessage(), e);
     }
   }
 }