final Currency currency) {
final Collection<FixedIncomeStripWithSecurity> securityStrips = new TreeSet<>();
final LocalDate curveDate = curveSpecification.getCurveDate();
for (final FixedIncomeStripWithIdentifier strip : curveSpecification.getStrips()) {
final ZonedDateTime start = curveDate.atTime(CASH_EXPIRY_TIME).atZone(ZoneOffset.UTC);
final ZonedDateTime maturity = curveDate.plus(strip.getMaturity().getPeriod()).atTime(CASH_EXPIRY_TIME).atZone(ZoneOffset.UTC);
final Tenor resolvedTenor = Tenor.of(Period.between(curveDate, maturity.toLocalDate()));
final CashSecurity security = new CashSecurity(currency, curveSpecification.getRegion(), start, maturity, DAY_COUNT, 0, 0);
securityStrips.add(new FixedIncomeStripWithSecurity(strip.getStrip(), resolvedTenor, maturity, strip.getSecurity(), security));
}
return new InterpolatedYieldCurveSpecificationWithSecurities(curveDate, curveSpecification.getName(), curveSpecification.getCurrency(), curveSpecification.getInterpolator(),