protected static function triggerApplication(self $e): void
    {
        if (class_exists('\Osf\Application\OsfApplication')) {
            if (\Osf\Application\OsfApplication::isDevelopment()) {
                \Osf\Exception\Error::displayException($e);
            } else {
                if (\Osf\Application\OsfApplication::isStaging()) {
                    $err = sprintf(__("%s. Details in log file."), $e->getMessage());
                    echo \Osf\Container\OsfContainer::getViewHelper()->alert(__("Error detected"), $err)->statusWarning();
                }
            }
        }
    }