private function getVarValue($sKey, $aVars)
    {
        foreach ($aVars as $aVar) {
            if ($sKey == $aVar['key']) {
                return $aVar['value'];
            }
        }

        return null;
    }