static function getInstance() { if (self::$instance == NULL) { self::$instance = new RESTModuleFactory(); } return self::$instance; }