code: public void writeTitle(String titleName, Object data) {
      if (null != titleName) {
        sheet = workbook.createSheet(titleName);
      } else {
        sheet = workbook.createSheet();
      }
      title = data;
      index = 0;
      writeItem(data);
      HSSFRow titleRow = sheet.getRow(index);
      HSSFCellStyle titleStyle = getTitleStyle();
      for (int i = 0; i < titleRow.getLastCellNum(); i++) {
        titleRow.getCell(i).setCellStyle(titleStyle);
      }
      index++;
    }
docs: {@inheritDoc}