title: Error creating cell with POI
body: <p>I do an export from Java to xls, i use POI library.</p>
  
  <p>My createCell Method:</p>
  
  <pre><code>private Cell createCell(Row ligne, int col, String value, CellStyle style, HSSFWorkbook classeur) {        
      //org.apache.poi.hssf.usermodel.HSSFOptimiser.optimiseCellStyles(classeur);
      CellStyle styleCell = classeur.createCellStyle();
      styleCell.cloneStyleFrom(style);
      return createCell(ligne, col, value, styleCell);
  }
  
  
  protected Cell createCell(Row ligne, int col, String value, CellStyle style) {
      Cell cell = createCell(ligne, col, value);
      cell.setCellStyle(style);
      return cell;
  }
  </code></pre>
  
  <p>i call this methods in a For, i have this message error:</p>
  
  <blockquote>
    <p>Echec de l'export: The maximum number of cell styles was exceeded. You
    can define up to 4000 styles in a .xls workbook</p>
  </blockquote>
  
  <p>How to reuse my cell without having to recreate each iteration ?</p>
  
  <p>Thx</p>