protected function _getStoreConfigValue($configKey, $store, $asFlag)
    {
        foreach ($this->_configModels as $configModel) {
            if ($configModel->hasKey($configKey)) {
                $configMethod = $asFlag ? 'getStoreConfigFlag' : 'getStoreConfig';
                return Mage::$configMethod($configModel->getPathForKey($configKey), $store);
            }
        }
        throw Mage::exception('Mage_Core', "Configuration path specified by '$configKey' was not found.");
    }