} else if (CSV_WRITE_TYPE.equalsIgnoreCase(daoType)) {
dao = new CSVFileWriter(config.getString(Config.DAO_NAME), config);
} else if (DATABASE_READ_TYPE.equalsIgnoreCase(daoType)) {
dao = new DatabaseReader(config);
} else if (DATABASE_WRITE_TYPE.equalsIgnoreCase(daoType)) {
dao = new DatabaseWriter(config);
} else {
String errMsg = Messages.getFormattedString("DataAccessObjectFactory.daoTypeNotSupported", daoType);
logger.error(errMsg);
throw new UnsupportedDataAccessObjectException(errMsg);
}