title: Aligning a cell to the center of the sheet in apache POI
body: <p>Is it possible to to align a cell so that it is placed at the center of the worksheet?
  I am creating a row and cell and setting some cell value. I am aware that the contents of a cell can be aligned to be placed at the top/center/bottom of a cell. However, I want the cell to be placed at the center of the worksheet.</p>
  
  <p>I have tried using the following line of code but, I am not sure if that does the trick - </p>
  
  <pre><code>Row row= sheet.createRow(5);
  Cell cell= row.createCell(6);
  heading.setCellValue("Test Value");
  CellStyle style = workbook.createCellStyle();
  style.setAlignment(CellStyle.ALIGN_CENTER);
  cell.setCellStyle(style);
  sheet.autoSizeColumn(6);
  </code></pre>