How can I access in a Spring application the current area of ββthe stream ...
In other words, how can I determine if the current thread region is a query or a system local thread?
Try
if (RequestContextHolder.getRequestAttributes() != null) // request thread