public bool PrepareCSV(string timeInUse = null)
        {
            List <string> dataPointsInUse;

            if (timeInUse != null)
            {
                dataPointsInUse = new List <string> {
                    timeInUse
                };
                dataPointsInUse = GetDataPointsInUse(dataPointsInUse, "csvfield", "field");
            }
            else
            {
                dataPointsInUse = GetDataPointsInUse("csvfield", "field");
            }
            if (dataPointsInUse.Count == 0)
            {
                return(true);
            }
            CsvProcessor csvProcessor = new CsvProcessor(dataFile, dataRestURL, dataSourceFileOrURL, dataPointsInUse, node);

            try {
                dataRecords = csvProcessor.GetRecords();
            } catch (Exception ex) {
                sourceLogger.Error(ex, "Error retrieving CSV data.");
                return(false);
            }

            return(true);
        }