public function startEmulation($storeId)
{
$this->logger->start('START EMULATION');
/** @var Mage_Core_Model_App_Emulation $appEmulation */
$appEmulation = Mage::getSingleton('core/app_emulation');
$info = $appEmulation->startEnvironmentEmulation($storeId);
$info->setInitialStoreId(Mage::app()->getStore()->getId());
$info->setEmulatedStoreId($storeId);
$info->setUseProductFlat(Mage::getStoreConfigFlag(Mage_Catalog_Helper_Product_Flat::XML_PATH_USE_PRODUCT_FLAT, $storeId));
$info->setUseCategoryFlat(Mage::getStoreConfigFlag(Mage_Catalog_Helper_Category_Flat::XML_PATH_IS_ENABLED_FLAT_CATALOG_CATEGORY, $storeId));
Mage::app()->setCurrentStore($storeId);
Mage::app()->getStore($storeId)->setConfig(Mage_Catalog_Helper_Product_Flat::XML_PATH_USE_PRODUCT_FLAT, false);
Mage::app()->getStore($storeId)->setConfig(Mage_Catalog_Helper_Category_Flat::XML_PATH_IS_ENABLED_FLAT_CATALOG_CATEGORY, false);
$this->logger->stop('START EMULATION');
return $info;
}