<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getMargin(self, name):
 """Provides the requested margin. Returns a reference to the margin if found and None otherwise """

        for margin in self._margins:
            if margin.getName() == name:
                return margin
        return None