/**
* Factory method to create a DownloadManager for a given content type name
*/
public DownloadManager downloadManagerFor(Class<?> contentType) throws IllegalStateException, IOException {
return new DownloadManager(new AuthenticatedDownloader(),
new File(
WizardPlugin.getDefault().getStateLocation().toFile(),
contentType.getSimpleName()
)
).clearCache();