private function renderSingleValue($label, $args, $maxLength = null)
    {
        // BC: sometimes the label was returned as string in the arguments instead of an array.
        $string = !\is_array($args) ? $args : \vsprintf($label, $args);

        if ((null !== $maxLength) && \strlen($string) > $maxLength) {
            $string = \substr($string, 0, $maxLength);
        }

        return $string;
    }