public static function instance() { if (self::$sm == null) { self::$sm = new SecurityManager(); } return self::$sm; }