}
return null;
}
private MemoizationCache getMemoizationCache(boolean returnFresh) {
MemoizationCache result = null;
if (memoization == null) {
result = new MemoizationCache();
memoization = new SoftReference<>(result);
return returnFresh ? result : null;
}
result = memoization.get();
if (result == null ) {
result = new MemoizationCache();
memoization = new SoftReference<>(result);
return returnFresh ? result : null;
}
return result;
}