public static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new CelerityResourceMap();
         $root = phutil_get_library_root('phabricator');
         $ok = (include_once $root . '/__celerity_resource_map__.php');
         if (!$ok) {
             throw new Exception("Failed to load Celerity resource map!");
         }
     }
     return self::$instance;
 }
 public static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new CelerityResourceMap();
         $root = phutil_get_library_root('phabricator');
         $path = PhabricatorEnv::getEnvConfig('celerity.resource-path');
         $ok = (include_once $root . '/' . $path);
         if (!$ok) {
             throw new Exception("Failed to load Celerity resource map! Check the " . "'celerity.resource-path' setting in your configuration.");
         }
     }
     return self::$instance;
 }