/src/main/java/net/finmath/modelling/productfactory/InterestRateMonteCarloProductFactory.java
else if( descriptor <= InterestRateSwaptionProductDescriptor) {
else if ( descriptor instanceof InterestRateSwaptionProductDescriptor ) {
} else if(descriptor instanceof InterestRateSwapProductDescriptor){ final InterestRateSwapProductDescriptor swap = (InterestRateSwapProductDescriptor) descriptor; final DescribedProduct<InterestRateSwapProductDescriptor> product = new SwapMonteCarlo(swap, referenceDate); return product; } <extra_id_0> final InterestRateSwaptionProductDescriptor swaption = (InterestRateSwaptionProductDescriptor) descriptor; final DescribedProduct<InterestRateSwaptionProductDescriptor> product = new SwaptionPhysicalMonteCarlo(swaption, referenceDate); return product; } else { final String name = descriptor.name();