open static fun getTargetSession(session: Session): Session
Return the innermost target Session of the given Session. If the given Session is a proxy, it will be unwrapped until a non-proxy Session is found. Otherwise, the passed-in Session will be returned as-is.
session - the Session proxy to unwrap
Return
the innermost target Session, or the passed-in one if no proxy
See Also
SessionProxy#getTargetSession()