Search before asking
Documentation Related
Apache Shiro docs discuss thread association of Subject, but modern Java now offers scoped values that eliminate the need for thread locals and structured concurrency for proper threads cleanup.
I would appreciate if the Apache Shiro docs are extended with these topics, some practical code is shown, especially for the custom Subject builder api
Are you willing to submit PR?