public void parseExtension() throws FileIsInMainFolderException, CantParseFileException, NotAllowedFileException
	{
		String caseString = this.extension.toUpperCase().replace(".", "");

		// Main Folder nicht benutzen?
		if (!cXMLGenerator.main.dontUseMainFolder)
		{
			if (this.isFileInMainFolder(this.pfad))
			{
				throw new FileIsInMainFolderException();
			}
		}
		try
		{
			if(cCustomFileParser.enumContains(scriptFileExtensions.class, caseString))
			{
				this.writeScriptFile();
			}
			else if(cCustomFileParser.enumContains(soundFileExtensions.class, caseString))
			{
				this.writeDownloadableFile();
			}
			else if(cCustomFileParser.enumContains(imageFileExtensions.class, caseString))
			{
				this.writeDownloadableFile();
			}
			else if(cCustomFileParser.enumContains(notAllowedFilesExtensions.class, caseString))
			{
				throw new NotAllowedFileException();
			}
			else
			{
				this.writeDownloadableFile();
			}

		}
		catch (Throwable ex)
		{

			throw new CantParseFileException();
		}

	}