/**
  * Obtain a refernece to the active upgrade handler
  */
 public static function instance()
 {
     if (!self::$instance) {
         // FIXME auto-generate
         self::$instance = new CRM_CiviDiscount_Upgrader('org.civicrm.module.cividiscount', realpath(__DIR__ . '/../../../'));
     }
     return self::$instance;
 }
function _cividiscount_civix_upgrader()
{
    if (!file_exists(__DIR__ . '/CRM/CiviDiscount/Upgrader.php')) {
        return NULL;
    } else {
        return CRM_CiviDiscount_Upgrader_Base::instance();
    }
}