def resolve_identifiers(self, subject_context):
session = subject_context.session<EOL>identifiers = subject_context.resolve_identifiers(session)<EOL>if (not identifiers):<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>logger.debug(msg)<EOL>identifiers = self.get_remembered_identity(subject_context)<EOL>if identifiers:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>logger.debug(msg)<EOL>subject_context.identifiers = identifiers<EOL>subject_context.remembered = True<EOL><DEDENT>else:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>logger.debug(msg)<EOL><DEDENT><DEDENT>return subject_context<EOL>
ensures that a subject_context has identifiers and if it doesn't will
attempt to locate them using heuristics