<div dir="ltr">Would it not be sufficient to use a local variable to capture the current binding?<div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">```
ScopedValue<String> testValue = ScopedValue.newInstance();
ScopedValue.where(testValue, "OuterValue", () -> {
String value = testValue.get();
withBinding(String.class, () -> value, () -> {
ScopedValue.where(testValue, "InnerValue", () -> {
System.out.println(getByType(String.class));
});
});
});
```
- Daniel</pre></div></div>