}
final int spotLag = iborIndexConvention.getSettlementDays();
iborIndex.add(new IborIndex(iborIndexConvention.getCurrency(), ibor.getTenor().getPeriod(), spotLag, iborIndexConvention.getDayCount(),
iborIndexConvention.getBusinessDayConvention(), iborIndexConvention.isIsEOM(), iborIndexConvention.getName()));
} else if (type instanceof OvernightCurveTypeConfiguration) {
final OvernightCurveTypeConfiguration overnight = (OvernightCurveTypeConfiguration) type;
final OvernightIndexConvention overnightConvention = conventionSource.getConvention(OvernightIndexConvention.class, overnight.getConvention());
if (overnightConvention == null) {
throw new OpenGammaRuntimeException("Overnight convention called " + overnight.getConvention() + " was null");
}
overnightIndex.add(new IndexON(overnightConvention.getName(), overnightConvention.getCurrency(), overnightConvention.getDayCount(), overnightConvention.getPublicationLag()));
} else if (type instanceof IssuerCurveTypeConfiguration) {
final IssuerCurveTypeConfiguration issuer = (IssuerCurveTypeConfiguration) type;
final String issuerName = issuer.getIssuerName();