@FXML
  private void initialize() {
    // Only show visible investment accounts
    accountComboBox.setPredicate(
        account -> account.instanceOf(AccountType.INVEST) && account.isVisible());

    final Preferences preferences = getPreferences();

    subAccountCheckBox.setSelected(preferences.getBoolean(RECURSIVE, true));
    longNameCheckBox.setSelected(preferences.getBoolean(VERBOSE, false));
  }
  @Override
  @Nullable
  public JasperPrint createJasperPrint(final boolean formatForCSV) {
    final Account account = accountComboBox.getValue();

    if (account != null) { // a null account is possible
      final PortfolioReportTableModel model =
          new PortfolioReportTableModel(account.getCurrencyNode());

      return createJasperPrint(model, formatForCSV);
    }

    return null;
  }
 @Override
 public String getReportName() {
   return accountComboBox.getValue().getName()
       + " - "
       + resources.getString("Title.PortfolioReport");
 }