String description = this.mimeTypeDetection
.getDescriptionForMimeType(productType);
if (description != null)
productType = description;
} else if (config.onlyDownloadDefinedTypes()) {
throw new UndefinedTypeException("File '" + file
+ "' is not a defined type");
}
downloadToDir = new File(downloadToDir.isAbsolute() ? downloadToDir
.getAbsolutePath() : this.config.getBaseStagingArea() + "/"