// code stolen from FilesView
final boolean[] result = { false };
boolean paused = fileInfo.getDownloadManager().pause();
FileUtil.runAsTask(new AzureusCoreOperationTask()
{
public void run(AzureusCoreOperation operation) {
result[0] = fileInfo.setLink(target);
}
});