/src/main/java/net/finmath/montecarlo/hybridassetinterestrate/products/Bond.java
final RandomVariable monteCarloProbabilities = model.getMonteCarloWeights( productToModelTimeOffset + maturity) ;final RandomVariable numeraire  = model.getNumeraire( productToModelTimeOffset + maturity) ;
final RandomVariable numeraire  = model.getNumeraire ( productToModelTimeOffset + maturity ) ;
try { if(referenceDate != null) { productToModelTimeOffset = FloatingpointDate.getFloatingPointDateFromDate(model.getReferenceDate(), referenceDate); } } catch(final UnsupportedOperationException e) {} <extra_id_0> final RandomVariable monteCarloProbabilities = model.getMonteCarloWeights(productToModelTimeOffset + maturity); RandomVariable values = model.getRandomVariableForConstant(1.0); values = values.mult(model.getValue(new RiskFactorFX(currency), maturity)); values = values.div(numeraire).mult(monteCarloProbabilities); final RandomVariable numeraireAtEvaluationTime = model.getNumeraire(evaluationTime); final RandomVariable monteCarloProbabilitiesAtEvaluationTime = model.getMonteCarloWeights(evaluationTime);