for (int j=0; j<putLength.length; j++) {
callability.add(
new Callability(
new Callability.Price(putPrices[j],Callability.Price.Type.Clean),
Callability.Type.Put,
schedule.date(putLength[j])));
}
// Assume dividends are paid every 6 months.
for (final Date d = today.add(new Period(6, TimeUnit.Months)); d.lt(exerciseDate); d.addAssign(new Period(6, TimeUnit.Months))) {
dividends.add(new FixedDividend(1.0, d));