String fileName = txtFilename.getText().trim();
String format = (String) cboFileFormat.getSelectedItem();
if (format.equals("Excel 2007"))
{
LOGGER.debug("Excel 2007 format selected");
ImportExcel2007 importExcel = new ImportExcel2007();
course = importExcel.importCourse(fileName);
} else if (format.equals("Excel 97-2003"))
{
LOGGER.debug("Excel 97-2003 format selected");
ImportExcel2003 importExcel = new ImportExcel2003();
course = importExcel.importCourse(fileName);
} else if (format.equals("CSV"))
{
LOGGER.debug("CSV format selected");
ImportCSV importCSV = new ImportCSV();
course = importCSV.importCourse(fileName);