protected function getSupportedProtocol(array $supported, array $requested)
    {
        $supportedProtocol = null;

        foreach ($requested as $protocol) {
            if (in_array($protocol, $supported)) {
                $supportedProtocol = $protocol;
                break;
            }
        }

        return $supportedProtocol;
    }