private boolean generateReport(Path output, Profile profile, DashBoard dash, int fetchCount, long startFrom) throws Exception { switch (report.reportOutput) { case MERGED_CSV: return merged(output, profile, dash, fetchCount, startFrom); case CSV_FILE_PER_DEVICE: return filePerDevice(output, profile, dash, fetchCount, startFrom); case CSV_FILE_PER_DEVICE_PER_PIN: case EXCEL_TAB_PER_DEVICE: default: return filePerDevicePerPin(output, profile, dash, fetchCount, startFrom); } }