protected function _getCacheModel()
{
if ($this->_magentoMajorVersion == AbstractMagentoCommand::MAGENTO_MAJOR_VERSION_2) {
throw new RuntimeException('There global Mage class was removed from Magento 2. What should we do here?');
} else {
return \Mage::app()->getCacheInstance();
}
}