<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getCurrentObjective(self):
 """ Get the the current objective. Returns `None` if no objective is set. """

        name = self._impl.getCurrentObjectiveName()
        if name == '':
            return None
        else:
            return self.getObjective(name)