uploader.setData(uncompressedBytes);
uploader.setFilename(zipEntry.getName());
uploader.setContentType(contentType);
// Get the right handler for that type and produce a WikiUpload instance
UploadType uploadType = uploadTypes.get(contentType);
if (uploadType == null) uploadType = uploadTypes.get(UploadTypes.GENERIC_UPLOAD_TYPE);
WikiUpload wikiUpload = uploadType.getUploadHandler().handleUpload(uploader);
// Now set the other properties so we can persist it directly
wikiUpload.setName(wikiUpload.getFilenameWithoutExtension());
wikiUpload.setWikiname(WikiUtil.convertToWikiName(wikiUpload.getName()));
wikiUpload.setAreaNumber(zipFile.getAreaNumber());