Searchs a parameter by type and returns it.

def getParameterByType(self, type):
        """Searchs a parameter by type and returns it."""
        result = None
        for parameter in self.getParameters():
            typeParam = parameter.getType()
            if typeParam == type:
                result = parameter
                break
        return result