Date calendarFromDate = new Date(calendarFrom);
Date calendarToDate = new Date(calendarTo);
GtfsSnapshotExport snapshotExport = new GtfsSnapshotExport(agencyObjects, calendarEnum, calendarFromDate, calendarToDate, "");
ProcessGtfsSnapshotExport exportJob = new ProcessGtfsSnapshotExport(snapshotExport.id);
// running as a sync task for now -- needs to be async for processing larger feeds.
exportJob.doJob();
redirect(Play.configuration.getProperty("application.appBase") + "/public/data/" + snapshotExport.getZipFilename());
}