private CSVGrid parseCSVGrid(ImportCSVFileAction action) {
try {
CSVGridParser parser = new CSVGridParser();
final File file = new File(FileUploadConstants.UPLOADS_DIRECTORY, action.getDocumentId().getDocumentId());
final BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "utf-8"));
CSVGrid grid = parser.readAll(reader);
reader.close();
return grid;
}
catch (IOException e) {
throw new RuntimeException(e);