def locate_locking_realm(self):
for realm in self.realms:<EOL><INDENT>if hasattr(realm, '<STR_LIT>'):<EOL><INDENT>return realm<EOL><DEDENT><DEDENT>return None<EOL>
the first realm that is identified as a LockingRealm will be used to
lock all accounts