return PluginCoreUtils.unwrap((DiskManagerFileInfo) ds);
} else if (ds instanceof org.gudy.azureus2.core3.disk.DiskManagerFileInfo) {
return (org.gudy.azureus2.core3.disk.DiskManagerFileInfo) ds;
} else if ((ds instanceof ISelectedContent)
&& ((ISelectedContent) ds).getFileIndex() >= 0) {
ISelectedContent sc = (ISelectedContent) ds;
int idx = sc.getFileIndex();
DownloadManager dm = sc.getDownloadManager();
return dm.getDiskManagerFileInfoSet().getFiles()[idx];
} else if (ds instanceof TranscodeJob) {
TranscodeJob tj = (TranscodeJob) ds;
try {
return PluginCoreUtils.unwrap(tj.getFile());