public static function getMimeTypeDetector() { if (!isset(self::$mimeTypeDetector)) { self::$mimeTypeDetector = new MimeTypeDetector(N2N::getVarStore()->requestFileFsPath(VarStore::CATEGORY_ETC, N2N::NS, null, self::MIMETYPES_ETC_FILE)); } return self::$mimeTypeDetector; }