Encapsulated getSession into getSessionFromRequest