protected function getOptionalParams($type, array $optionalParams)
    {
        foreach ($optionalParams as $optionalParamName) {
            $val = $this->getConfigValue($type, $optionalParamName);

            if ($val) {
                $this->serviceParams[$optionalParamName] = $val;
            }

            $this->optionalParamNames = $optionalParamName;
        }
    }