I\'m trying to setup some code that will behave one way if spring\'s request scope is available, and another way if said scope is not available.
The application in quest
You can use the if check described here
SPRING - Get current scope
if (RequestContextHolder.getRequestAttributes() != null) // request thread
instead of catching exceptions. Sometimes that looks like the simplest solution.