DslSession ThreadLocal

Isn't this the correct way to use the ThreadLocal class?