public static function getInstance() { if (!self::hasInstance()) { self::$instance = self::createInstance(); } return self::$instance; }