function loadHandler($handler)
 {
     $sf = new SiteFunction();
     $sf->noForeign();
     $sf->clauseSafe('handler', $handler);
     if ($sf->id()) {
         $ret = $sf->getHandler();
     } else {
         if (class_exists(str_replace('Application', 'Setup', constant('APPLICATION')))) {
             $class_name = str_replace('Application', 'Setup', constant('APPLICATION'));
             $ret = new $class_name();
         } else {
             $ret = Application::loadHandler($handler);
         }
     }
     return $ret;
 }