<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def default_capability(self):
 """Set capability name in md. Every ResourceSync document should have the top-level capability attributes. """

        if ('capability' not in self.md and self.capability_name is not None):
            self.md['capability'] = self.capability_name