public static IConversionWorker getConversionWorker(String mimeType,
			List<String> outputMimeTypeList, File incomingFile, File OutputDir,
			int limit, Conversion conversion, String realPath) {
		System.out.println(realPath);
		System.out.println(mimeType);
		System.out.println(outputMimeTypeList.get(0));
		if (MimeTypeGroups.PDF.list().contains(mimeType))
			if (MimeTypeGroups.IMAGES.list().containsAll(outputMimeTypeList))
				return new PDFConversionWorker(incomingFile, OutputDir,
						outputMimeTypeList, limit, conversion);
		if (MimeTypeGroups.OFFICE_DOCUMENTS.list().contains(mimeType))
			if (MimeTypeGroups.IMAGES.list().containsAll(outputMimeTypeList))
				return new MsDocumentConversionWorker(incomingFile, OutputDir,
						outputMimeTypeList, limit, conversion);
		if (MimeTypeGroups.EPUB.list().contains(mimeType))
			if (MimeTypeGroups.IMAGES.list().containsAll(outputMimeTypeList))
				return new EpubConversionWorker(incomingFile, OutputDir,
						outputMimeTypeList, limit, conversion, realPath);
		if (MimeTypeGroups.VIDEOS.list().contains(mimeType))
			// if (MimeTypeGroups.VIDEOS.list().containsAll(outputMimeTypeList))
			return new VideoConversionWorker(incomingFile, OutputDir,
					outputMimeTypeList, limit, conversion);
		return null;
	}