This is not top priority but new code should follow this and encountered code should be migrated.
If someone is willing to take the codebase over and convert the better
And in the code throwing the exception
will result in
Dropping version, this is an ongoing process.
Fixed as part of HSEARCH-3082; we included a forbiddenapis rule so that any SearchException we throw in the future will have to be instantiated by JBoss Logging.