} else if (kk == 1) {
payoff = new CashOrNothingPayoff(type, strike, 100.0);
} else if (kk == 2) {
payoff = new AssetOrNothingPayoff(type, strike);
} else if (kk == 3) {
payoff = new GapPayoff(type, strike, 100.0);
}
final EuropeanOption option = new EuropeanOption(payoff, exercise);
option.setPricingEngine(engine);
for (final double u : underlyings) {