def create_manager(self, yosai, settings, session_attributes):
mgr_settings = SecurityManagerSettings(settings)<EOL>attributes = mgr_settings.attributes<EOL>realms = self._init_realms(settings, attributes['<STR_LIT>'])<EOL>session_attributes = self._init_session_attributes(session_attributes, attributes)<EOL>serialization_manager =SerializationManager(session_attributes,<EOL>serializer_scheme=attributes['<STR_LIT>'])<EOL>cache_handler = self._init_cache_handler(settings,<EOL>attributes['<STR_LIT>'],<EOL>serialization_manager)<EOL>manager = mgr_settings.security_manager(yosai,<EOL>settings,<EOL>realms=realms,<EOL>cache_handler=cache_handler,<EOL>serialization_manager=serialization_manager)<EOL>return manager<EOL>
Order of execution matters.  The sac must be set before the cache_handler is
instantiated so that the cache_handler's serialization manager instance
registers the sac.