<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def lookupByName(self, name):
 """ I lookup an existing predefined domain """

        res = yield queue.executeInThread(self.connection.lookupByName, name)
        return self.DomainClass(self, res)