/**
  * Answer the Site Director
  *
  * @return object SiteDirector
  * @access public
  * @since 3/31/08
  */
 public static function getSiteDirector()
 {
     if (!isset(self::$director)) {
         /*********************************************************
          * XML Version
          *********************************************************/
         // 		$testDocument = new DOMIT_Document();
         // 		$testDocument->setNamespaceAwareness(true);
         // 		$success = $testDocument->loadXML(MYDIR."/main/library/SiteDisplay/test/testSite.xml");
         //
         // 		if ($success !== true) {
         // 			throwError(new Error("DOMIT error: ".$testDocument->getErrorCode().
         // 				"<br/>\t meaning: ".$testDocument->getErrorString()."<br/>", "SiteDisplay"));
         // 		}
         //
         // 		$director = new XmlSiteDirector($testDocument);
         //
         // 		if (!$nodeId = RequestContext::value("node"))
         // 			$nodeId = "1";
         /*********************************************************
          * Asset version
          *********************************************************/
         $repositoryManager = Services::getService('Repository');
         $idManager = Services::getService('Id');
         self::$director = new AssetSiteDirector($repositoryManager->getRepository($idManager->getId('edu.middlebury.segue.sites_repository')));
     }
     return self::$director;
 }