public static function getPlatformHandler()
 {
     switch (FlexiConfig::$sFramework) {
         case "modx":
             return FlexiModxPlatformHandler::getInstance();
             break;
         case "modx2":
             return FlexiModx2PlatformHandler::getInstance();
             break;
         case "iscript":
             return FlexiIScriptPlatformHandler::getInstance();
             break;
         default:
             return FlexiStandAlonePlatformHandler::getInstance();
             //TODO
     }
     return null;
 }
 public static function getInstance()
 {
     if (is_null(self::$oInstance)) {
         self::$oInstance = new FlexiModx2PlatformHandler();
     }
     return self::$oInstance;
 }