/**
  * Execute action
  *
  * @param string $classPath
  * @param array $args
  * @return Enterprise_Mview_Model_Client
  * @throws Enterprise_Mview_Exception
  */
 public function execute($classPath, array $args = array())
 {
     if (Mage::getStoreConfig(self::XML_PATH_CHANGELOG_CLEAN_DUPLICATE)) {
         if (!is_object($this->_metadata)) {
             throw new Enterprise_Mview_Exception('Metadata should be initialized before action is executed');
         }
         $this->_cleanChangelogTablesBeforeIndexing($this->_metadata);
     }
     return parent::execute($classPath, $args);
 }
 /**
  * Refresh products url rewrites by changelog
  *
  * @param Enterprise_Mview_Model_Client $client
  * @return Enterprise_Index_Model_Cron
  */
 protected function _refreshProductUrlRewrite(Enterprise_Mview_Model_Client $client)
 {
     $client->init('enterprise_url_rewrite_product');
     $client->execute('enterprise_catalog/index_action_url_rewrite_product_refresh_changelog');
     return $this;
 }