private String generateTRGFile(String csvFilename) {
		// If this is the first time this step has processed data,
		// mark the step as started
		if (!this.running){
			this.running=true;
			this.logStart();
		}
		// Make sure filename ends in .csv
		if (csvFilename.toLowerCase().endsWith(".csv")) {
			// Replace .csv and the end of file with .trg
			int cnt = 0;
			int idx = csvFilename.toLowerCase().indexOf(".csv");
			while (idx >= 0) {
				cnt++;
				idx = csvFilename.toLowerCase().indexOf(".csv", idx+1);
			}
			if (cnt > 0) {  // we found .csv at least once
				// replace the last occurence with .trg
				csvFilename = csvFilename.substring(0, csvFilename.length() - 4 ).concat(".trg");
			}
			
			// Generate the .trg file
			File newFile = new File(csvFilename);
			try {
				newFile.createNewFile();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
		}
		else {
			// LOG:  skipping file, does not end with ".csv"
		}
		return csvFilename;
	}