added getCurrentSession method