protected function getBrokerSessionId()
    {
        $headers = getallheaders();
        if (isset($headers['Authorization']) &&  strpos($headers['Authorization'], 'Bearer') === 0) {
            $headers['Authorization'] = substr($headers['Authorization'], 7);

            return $headers['Authorization'];
        }

        return null;
    }