def do_get_session(self, session_key):
session_id = session_key.session_id<EOL>msg = ("<STR_LIT>" +<EOL>str(session_id))<EOL>logger.debug(msg)<EOL>session = self._retrieve_session(session_key)<EOL>if (session is not None):<EOL><INDENT>self.validate(session, session_key)<EOL><DEDENT>return session<EOL>
:type session_key: SessionKey
:returns: SimpleSession