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();
final Currency currency = Currency.of(issuer.getUnderlyingReference());
issuerMap.put(curveName, Pair.of(issuerName, currency));
} else {
throw new OpenGammaRuntimeException("Cannot handle " + type.getClass());
}
} // type - end