protected function getMessageFile($category,$language)
	{
	    if(!isset($this->_files[$category][$language]))
	    {
	        if(($pos=strpos($category,'.'))!==false && strpos($category,'ciims') === false)
	        {
	            $extensionClass=substr($category,0,$pos);
	            $extensionCategory=substr($category,$pos+1);

	            // First check if there's an extension registered for this class.
	            if(isset($this->extensionPaths[$extensionClass]))
	                $this->_files[$category][$language]=Yii::getPathOfAlias($this->extensionPaths[$extensionClass]).DS.$language.DS.$extensionCategory.'.php';
	            else
	            {
                    if (strpos($extensionClass, 'themes') !== false)
                    {
                    	$baseClass = explode('.', $extensionCategory);
                    	$theme = $baseClass[0];
                    	unset($baseClass[0]);
                    	$baseClass = implode('.', $baseClass);
                    	$this->_files[$category][$language] = Yii::getPathOfAlias("base.themes.$theme.messages").DS.$language.DS.$baseClass.'.php';
                    }
                    else 
                    {
                        // No extension registered, need to find it.
                        if (isset(Yii::app()->controller->module->id))
                            $extensionClass .= 'Module';

                        $class=new ReflectionClass($extensionClass);
                        $this->_files[$category][$language]=dirname($class->getFileName()).DS.'messages'.DS.$language.DS.$extensionCategory.'.php';
                    }
	            }
	        }
	        else
	        {
	        	if (strpos($category,'ciims.') !== false)
	        	{
	        		$this->basePath = Yii::getPathOfAlias('application.messages.');
	        		$this->_files[$category][$language]=$this->basePath.DS.$language.DS.str_replace('.', '/', str_replace('ciims.', '', $category)).'.php';
	        	}
	        	else
					$this->_files[$category][$language]=$this->basePath.DS.$language.DS.$category.'.php';
	        }
	    }

	    return $this->_files[$category][$language];
	}