final BlackScholesMertonProcess stochProcess = new BlackScholesMertonProcess(
new Handle<Quote>(underlying),
new Handle<YieldTermStructure>(qTS),
new Handle<YieldTermStructure>(rTS),
new Handle<BlackVolTermStructure>(volTS));
final PricingEngine engine = new AnalyticBarrierEngine(stochProcess);
final BarrierOption barrierCallOption = new BarrierOption(value.barrierType, value.barrier, rebate, callPayoff, exercise);
barrierCallOption.setPricingEngine(engine);