<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getObjective(self, name):
 """ Get the objective with the corresponding name. Args: name: Name of the objective to be found. Raises: TypeError: if the specified objective does not exist. """

        return lock_and_call(
            lambda: Objective(self._impl.getObjective(name)),
            self._lock
        )