<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_jobs(self, name=None):
 """Retrieves jobs running on this resource in its instance. Args: name (str, optional):
 Only return jobs containing property **name** that matches `name`. `name` can be a regular expression. If `name` is not supplied, then all jobs are returned. Returns: list(Job):
 A list of jobs matching the given `name`. .. note:: If ``applicationResource`` is `False` an empty list is returned. .. versionadded:: 1.9 """

        if self.applicationResource:
            return self._get_elements(self.jobs, 'jobs', Job, None, name)
        else:
            return []