if (SessionManager.class.equals(miDeclaringClass) || NativeSessionManager.class.equals(miDeclaringClass)) {
sessionManagerMethodInvocation = true;
//for SessionManager calls, all method calls except the 'start' methods require a SessionKey
// as the first argument, so just get it from there:
if (!mi.getMethod().getName().equals("start")) {
SessionKey key = (SessionKey) mi.getArguments()[0];
sessionId = key.getSessionId();
}
}
//tried the delegate. Use the injected session id if given
if (sessionId == null) sessionId = this.sessionId;