@Override
    public void displayFromExcel(String xlsPath) {
	InputStream inputStream = null;
	try {
	    inputStream = new FileInputStream(xlsPath);

	    POIFSFileSystem fileSystem = null;
	    try {
		fileSystem = new POIFSFileSystem(inputStream);
		HSSFWorkbook workBook = new HSSFWorkbook(fileSystem);
		HSSFSheet sheet = workBook.getSheetAt(0);
		Iterator<Row> rows = sheet.rowIterator();

		while (rows.hasNext()) {
		    HSSFRow row = (HSSFRow) rows.next();

		    // display row number in the console.
		    System.out.println("*****************************");
		    System.out.println("ROW No.: " + row.getRowNum());

		    // once get a row its time to iterate through cells.
		    Iterator<Cell> cells = row.cellIterator();
		    while (cells.hasNext()) {
			HSSFCell cell = (HSSFCell) cells.next();
			// get cell values
			switch (cell.getCellType()) {
			case HSSFCell.CELL_TYPE_NUMERIC: {
			    if (HSSFDateUtil.isCellDateFormatted(cell)) {
				Format formatter = new SimpleDateFormat("dd.MM.yyyy");
				String date = formatter.format(cell.getDateCellValue());
				System.out.println(date);
			    } else {
				System.out.println(cell.getNumericCellValue());
			    }
			    break;
			}
			case HSSFCell.CELL_TYPE_STRING: {
			    HSSFRichTextString richTextString = cell.getRichStringCellValue();
			    System.out.println(richTextString.getString());
			    break;
			}
			default: {
			    // types other than String and Numeric.
			    System.out.println("Type not supported.");
			    break;
			}
			}
		    }
		}
	    } catch (IOException e) {
		System.out.println("******************************************");
		System.out.printf("The inserted file type is not supported!");
		System.out.println("******************************************");
	    }
	} catch (FileNotFoundException e) {
	    System.out.println("*******************************************************");
	    System.out.println("File not found in the specified path. Please try again!");
	    System.out.println("*******************************************************");
	} catch (OfficeXmlFileException e) {
	    System.out.println("****************************************************************************************");
	    System.out.println("Wrong XLS Type: only *.xls files allowed. Please make sure you don't select *.xlsx files");
	    System.out.println("****************************************************************************************");
	}
    }