for(int i=0; i < tmp.length ; i++){
switch (i) {
case 0:
grid2Cell = new PdfPCell(new Phrase(messages[0], contentBoldFont));
grid2Cell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
grid2Table.addCell(grid2Cell);
break;
case 2:
grid2Cell = new PdfPCell(new Phrase(messages[1], contentBoldFont));
grid2Cell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
grid2Table.addCell(grid2Cell);