Thanks for the suggestion Yuriy.
The getSessionId(session_id) return None.
Here is a sample code I am trying.
```
session_id = authorizationGrant.getSessionDn()
print "Got session id: %s" % session_id
sessionIdService = CdiUtil.bean(SessionIdService)
print "Got session id service: %s " % sessionIdService
sessionId2 = sessionIdService.getSessionId(session_id)
print "Got session id 2: %s" % sessionId2
sessionAttributes = sessionId2.getSessionAttributes()
print "Got session attributes: %s " % sessionAttributes
```
And here are the logs
```
2019-07-04 14:40:07,955 INFO [qtp804611486-9] [org.xdi.service.PythonService$PythonLoggerOutputStream] (PythonService.java:239) - Got session id: oxAuthSessionId=299dff59-119b-465d-925b-15368626ab02,ou=session,o=@!489F.B53C.5D05.2E63!0001!902A.0EEE,o=gluu
2019-07-04 14:40:07,957 INFO [qtp804611486-9] [org.xdi.service.PythonService$PythonLoggerOutputStream] (PythonService.java:239) - Got session id service: org.xdi.oxauth.service.SessionIdService@46ef54b8
2019-07-04 14:40:07,957 INFO [qtp804611486-9] [org.xdi.service.PythonService$PythonLoggerOutputStream] (PythonService.java:239) - Got session id 2: None
```