protected function setParameterProvider(Provider &$provider = null)
    {
        if ($provider === null) {
            if ($this->provider === null) {
                throw new RuntimeException('No provider specified');
            }

            $provider = $this->provider;
        }
    }