public Export export(ExportTypes exportType) { Export export = null; if (exportType.Equals(ExportTypes.CSV)) { export = new ExportCSV(); } else if (exportType.Equals(ExportTypes.JSON)) { export = new ExportJSON(); } return(export); }