final RestructuringClause restructuringClause = security.getRestructuringClause();
final double amount = notional.getAmount();
final double recoveryRate = _recoveryRate;
final boolean includeAccruedPremium = security.isIncludeAccruedPremium();
final boolean protectionStart = security.isProtectionStart();
final StubType stubType = security.getStubType().toAnalyticsType();
final double parSpread = security.getParSpread();
return new LegacyVanillaCreditDefaultSwapDefinition(buySellProtection, DUMMY_OBLIGOR_A, DUMMY_OBLIGOR_B, DUMMY_OBLIGOR_C, currency,
debtSeniority, restructuringClause, calendar, startDate, effectiveDate, maturityDate, stubType,
couponFrequency, dayCount, businessDayConvention, immAdjustMaturityDate, adjustEffectiveDate, adjustMaturityDate,
amount, recoveryRate, includeAccruedPremium, protectionStart, parSpread);