/**
  * Factory method for this class.
  *
  * @return testable_available_update_checker the singleton instance
  */
 public static function instance()
 {
     global $CFG;
     if (is_null(self::$singletoninstance)) {
         self::$singletoninstance = new self();
     }
     return self::$singletoninstance;
 }