Relatório com String nao gera

boa tarde,

alguem pode me falar pq esse relatorio nao é gerado:

public HashMap relExcel() {

       String sql = req.getParameter("pSql");
try{
       DAOExcelSql dao = new DAOExcelSql();

       List<String> NomeClunas = dao.consultaNmeColunas(sql);
       List<Object> DadosColunas = dao.consultaDadosColunas(sql);
       int count = 0;

       StringBuilder sb = new StringBuilder();



        for (Iterator<String> it = NomeClunas.iterator(); it.hasNext();) {
        sb.append(it.next()+"\t");
      }
       sb.append("\n");
       for (Iterator<Object> it = DadosColunas.iterator(); it.hasNext();) {

           if(count < NomeClunas.size()){
           sb.append(it.next());
           count ++;
           }else if(count == NomeClunas.size()){
               sb.append("\t");
               sb.append("\n");
               count = 0;
           }

       }
       FileWriter relExcel = new FileWriter("relatorio.xls");
       relExcel.write(new String(sb));
       relExcel.close();
        }catch (Exception ex){
            ex.printStackTrace();
        }
    return dados;
}