/**
  * Import component controller. Current or default according to client position.
  * @return boolean true if successfully imported
  */
 static function controller($name = null)
 {
     $match = array();
     if (preg_match('/^([a-z_]+)\\.([a-z_]+)$/', JRequest::getString('task'), $match)) {
         JRequest::setVar('controller', $match[1]);
         JRequest::setVar('task', $match[2]);
     }
     $cname = is_null($name) ? JRequest::getString('controller', 'controller') : $name;
     $cname = $cname ? $cname : 'controller';
     AImporter::import('controllers', $cname);
     return AImporter::getControllerName($name);
 }