code: private static Map<String, CellStyle> createStyles(Workbook wb) {
      Map<String, CellStyle> styles = new HashMap<String, CellStyle>();
  
      CellStyle style;
      Font headerFont = wb.createFont();
      style = createBorderedStyle(wb);
      style.setAlignment(CellStyle.ALIGN_CENTER);
      style.setFillForegroundColor(HSSFColor.LIGHT_CORNFLOWER_BLUE.index);
      style.setFillPattern(CellStyle.SOLID_FOREGROUND);
      style.setFont(headerFont);
      styles.put("header", style);
  
  
      Font font1 = wb.createFont();
      style = createBorderedStyle(wb);
      style.setAlignment(CellStyle.ALIGN_LEFT);
      style.setFont(font1);
      styles.put("cell_b", style);
  
      return styles;
  
    }
docs: Cell styles used.