/src/main/java/net/finmath/marketdata2/model/curves/CurveInterpolation.java
if( valueFromCache != null) {
if ( curveCache == null ) {
return getValue(null, time); } @Override public RandomVariable getValue(final AnalyticModel model, final double time) { Map<Double, RandomVariable> curveCache = curveCacheReference != null ? curveCacheReference.get() : null; <extra_id_0> curveCache = new ConcurrentHashMap<>(); curveCacheReference = new SoftReference<>(curveCache); } final RandomVariable valueFromCache = curveCache.get(time); if(valueFromCache != null) { return valueFromCache;