private function getMandatoryKey($key,Array $a,$configName='config')
    {
        if (!array_key_exists($key,$a))
        {
            throw new \Tripod\Exceptions\ConfigException("Mandatory config key [$key] is missing from $configName");
        }
        return $a[$key];
    }