HolidaySearchResult holidaySearchResult = inMemoryHolidayMaster.search(new HolidaySearchRequest());
List<ManageableHoliday> holidays = holidaySearchResult.getHolidays();
for (ManageableHoliday manageableHoliday : holidays) {
SimpleHoliday simpleHoliday = new SimpleHoliday();
simpleHoliday.setCurrency(manageableHoliday.getCurrency());
simpleHoliday.setExchangeExternalId(manageableHoliday.getExchangeExternalId());
simpleHoliday.setHolidayDates(manageableHoliday.getHolidayDates());
simpleHoliday.setRegionExternalId(manageableHoliday.getRegionExternalId());
simpleHoliday.setType(manageableHoliday.getType());
redisHolidaySource.addHoliday(simpleHoliday);
}
return redisHolidaySource;
}