def create_exposed_session(self, session, key=None, context=None):
if key:<EOL><INDENT>return WebDelegatingSession(self, key)<EOL><DEDENT>web_registry = context['<STR_LIT>']<EOL>session_key = WebSessionKey(session.session_id,<EOL>web_registry=web_registry)<EOL>return WebDelegatingSession(self, session_key)<EOL>
This was an overloaded method ported from java that should be refactored. (TBD)
Until it is refactored, it is called in one of two ways:
    1) passing it session and session_context
    2) passing it session and session_key