Searchs a parameter by name and returns it.

def getParameterByName(self, name):
        """Searchs a parameter by name and returns it."""
        result = None
        for parameter in self.getParameters():
            nameParam = parameter.getName()
            if nameParam == name:
                result = parameter
                break
        return result