final double notional = 1e6;
final Currency currency = currency();
final ExternalId longIdentifier = ExternalId.of(ExternalSchemes.RIC, "USDSFIX10Y=");
final ExternalId shortIdentifier = ExternalId.of(ExternalSchemes.RIC, "USDSFIX1Y=");
final double strike = 0;
final Frequency frequency = frequency();
final DayCount dayCount = dayCount();
final boolean payer = bool();
final boolean cap = bool();
final CapFloorCMSSpreadSecurity security = new CapFloorCMSSpreadSecurity(startDate, maturityDate, notional, longIdentifier, shortIdentifier, strike, frequency, currency, dayCount, payer, cap);
store(security);