@RequestMapping(value = CSV_PATH, method = RequestMethod.POST)
@ResponseBody
public ResponseEntity<byte[]> exportToCsv(
@RequestParam(QUERY_REQUEST_PARAM) final String queryRequestJSON,
@RequestParam(value = SELECTED_EXPORT_FIELDS_PARAM, required = false) final Collection<String> selectedFieldNames
<BUG>) throws IOException, E {
return export(queryRequestJSON, ExportFormat.CSV, selectedFieldNames);
}
private ResponseEntity<byte[]> export(final String queryRequestJSON, final ExportFormat exportFormat, final Collection<String> selectedFieldNames) throws IOException, E {</BUG>
final R queryRequest = requestMapper.parseQueryRequest(queryRequestJSON);

@RequestMapping(value = CSV_PATH, method = RequestMethod.POST)
@ResponseBody
public ResponseEntity<byte[]> exportToCsv(
@RequestParam(QUERY_REQUEST_PARAM) final String queryRequestJSON,
@RequestParam(value = SELECTED_EXPORT_FIELDS_PARAM, required = false) final Collection<String> selectedFieldNames
) throws IOException, E {
final ExportFormat exportFormat = ExportFormat.CSV;
final R queryRequest = requestMapper.parseQueryRequest(queryRequestJSON);
