if (StringUtils.isBlank(csvNumberPattern)) {
throw new Exception( getErrorMessage("error4") );
}
// Set the CSV file and try to load the new dataset.
CSVDataLoader csvLoader = getCSVDataLoader();
csvLoader.setCsvSeparatedBy(csvSeparatedBy);
csvLoader.setCsvQuoteChar(csvQuoteChar);
csvLoader.setCsvEscapeChar(csvEscapeChar);
csvLoader.setCsvDatePattern(csvDatePattern);
csvLoader.setCsvNumberPattern(csvNumberPattern);
csvLoader.setFileURL(csvUrlFile);
try {
// Ensure data retrieved is refreshed.
Chronometer crono = new Chronometer();
crono.start();