public function start()
 {
     if (!$this->isRunning) {
         $this->isRunning = true;
         $this->phpStart();
         com_wiris_system_Storage::$resourcesDir = null;
     }
 }
 static function setResourcesDir()
 {
     $filedir = com_wiris_system_Storage::getCallerFile();
     com_wiris_system_Storage::$resourcesDir = _hx_substr($filedir, 0, _hx_last_index_of($filedir, com_wiris_system_Storage::getDirectorySeparator() . "com" . com_wiris_system_Storage::getDirectorySeparator(), null));
 }