Adding convenience method getSession