Passing the session object is the only supported way. There is a gross hack you can do, but as mentioned in the thread, don't expect support or be surprised if it breaks suddenly on upgrade.
Passing the session object is the only supported way. There is a gross hack you can do, but as mentioned in the thread, don't expect support or be surprised if it breaks suddenly on upgrade.