@Override
    public void actionPerformed(ActionEvent e) {
      ApplicationContext.getInstance().getAppStatusBean().setStatus("Shutting down...");
      frame.dispose();

      System.exit(0); // main thread has died by now, so instigate system exit from here
    }
 public TradingDataResource(final URL locatorBase, final String strategy) {
   super("Trading Data", locatorBase);
   this.strategy = strategy;
   this.csvFormat =
       CSVFormat.DEFAULT
           .withRecordSeparator(
               ApplicationContext.getInstance()
                   .getConfigurationResource()
                   .getDefaultCsvRecordSeparator())
           .withHeader();
 }