<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getbr(self, name):
 """ Return a bridge object."""

        for br in self.showall():
            if br.name == name:
                return br
        raise BridgeException("Bridge does not exist.")