Refactor code to populate a spreadsheet
Why don't you unroll the inner loop?  So the final method will be like

private void writerContent(Integer firstRow, List&lt;Record&gt; records) {
    XSSFSheet sheet = workBook.getSheetAt(0);
    for (int lineId=firstRow; lineId&lt;records.size(); lineId++) {
        Record rec = records.get(lineId);
        Row row = sheet.getRow(lineId);
        row.createCell(0).setCellValue(rec.getNumber());
        row.createCell(1).setCellValue(rec.getName());  
        row.createCell(2).setCellValue(rec.getCode()); 
        row.createCell(3).setCellValue(rec.getCount());
        row.createCell(4).setCellValue(rec.getSimultaneouslyProcessedProducts());  
        row.createCell(5).setCellValue(rec.isSimultaneousProcessing());
        row.createCell(6).setCellValue(rec.getInterchangeability());
    }
}