def setBranch(self, *args, **kwargs):
try:<EOL><INDENT>branch = self.mambubranchclass(entid=self['<STR_LIT>'], *args, **kwargs)<EOL><DEDENT>except AttributeError as ae:<EOL><INDENT>from .mambubranch import MambuBranch<EOL>self.mambubranchclass = MambuBranch<EOL>branch = self.mambubranchclass(entid=self['<STR_LIT>'], *args, **kwargs)<EOL><DEDENT>self['<STR_LIT>'] = branch['<STR_LIT:name>']<EOL>self['<STR_LIT>'] = branch<EOL>return <NUM_LIT:1><EOL>
Adds the branch to which the client belongs.