Adding convenience method getSession.