public function resolveContext($name)
    {
        if (!isset($this->_contexts[$name])) {
            throw new CException(sprintf('Failed to find payment context "%s".', $name));
        }
        return $this->_contexts[$name];
    }