/src/main/java/net/finmath/montecarlo/interestrate/products/components/Option.java
if( underlyingNames == null) {
if ( product instanceof AbstractProductComponent ) {
return underlying.getCurrency(); } @Override public Set<String> queryUnderlyings() { Set<String> underlyingNames = null; for(final TermStructureMonteCarloProduct product : new TermStructureMonteCarloProduct[] {underlying, strikeProduct}) { <extra_id_0> final Set<String> productUnderlyingNames = ((AbstractProductComponent)product).queryUnderlyings(); if(productUnderlyingNames != null) { if(underlyingNames == null) { underlyingNames = productUnderlyingNames; } else { underlyingNames.addAll(productUnderlyingNames);