Set<ExternalIdBundle> externalIdBundles, String dataSource, String dataProvider, String dataField, LocalDate start, boolean includeStart, LocalDate end, boolean includeEnd) {
if (!includeStart && start != null) {
start = start.plusDays(1);
}
LocalDateRange dateRange = LocalDateRange.ofNullUnbounded(start, end, includeEnd);
s_logger.info("Getting HistoricalTimeSeries for securities {}", externalIdBundles);
Map<ExternalIdBundle, LocalDateDoubleTimeSeries> map = _provider.getHistoricalTimeSeries(externalIdBundles, dataSource, dataProvider, dataField, dateRange);
Map<ExternalIdBundle, HistoricalTimeSeries> result = Maps.newHashMap();
for (ExternalIdBundle bundle : map.keySet()) {