info.setExternalIdBundle(ExternalIdBundleWithDates.of(ExternalIdWithDates.of(identifier, null, null)));
info.setDataField(dataField);
info.setDataProvider(BloombergDataUtils.resolveDataProvider(dataProvider));
info.setObservationTime(BloombergDataUtils.resolveObservationTime(dataProvider));
info.setDataSource(RANDOM_DATA_SOURCE_NAME);
HistoricalTimeSeriesInfoDocument addedDoc = _htsMaster.add(new HistoricalTimeSeriesInfoDocument(info));
// add the series
LocalDateDoubleTimeSeries timeSeries = generateRandomHistoricalTimeSeries(startDate, endDate);
UniqueId uid = _htsMaster.updateTimeSeriesDataPoints(addedDoc.getInfo().getTimeSeriesObjectId(), timeSeries);
result.put(identifier, uid);
}
return result;
}