tidak dapat menulis dokumen data tampaknya telah ditutup di java

@Override
protected void buildExcelDocument( Map<String, Object> model, Workbook workbook, HttpServletRequest request, HttpServletResponse response)   {

	createExcel(workbook, model); 
    
	response.setContentType("ms-vnd/excel");
	response.setHeader("Content-Disposition", "attachment;filename=example.xlsx");
	
	try {
		
		ServletOutputStream out = response.getOutputStream();
		workbook.write(out);
		out.flush();
		
	} catch (IOException e) {
		e.printStackTrace();
	}  
}
Lucky Ladybird