public function getParameterDefinition($name)
    {
        if ($this->hasParametersDefinitions()) {
            foreach ($this->getParametersDefinitions() as $parameterDefinition) {
                if ($parameterDefinition->name === $name) {
                    return $parameterDefinition;
                }
            }
        }
        return null;
    }