code: public void writeTemplateSpreadsheetDownloadFile(List<TemplateTokenInfo> tokenNames,
                                                       TemplateVariablesSet variablesSet,
                                                       String filePath) throws TemplateException {
  
          prepareWriter(filePath);
          writeDownloadSpreadsheetHeader(tokenNames);
  
          for (int i = 1; i < variablesSet.getEntryCount() + 1; i++) {
              TemplateVariables entryVariables = variablesSet.getEntryValues(i);
              writeSpreadsheetVariableRow(tokenNames, i, entryVariables);
          }
  
          flushAndCloseWriter();
      }
docs: Writes the download file for variables for spreadsheet import