}
@Override
public void downloadFile(String path, FileDownloadCallback callback) {
try {
FileManager fileMgr = getFileManager(callback);
if (fileMgr == null) {
// The callback has already been notified.
return;
}
ServerInfo server = getConfiguration().getServerInfo();
// Call web service.
CDownloadedFile requestedFile = new CDownloadedFile();
requestedFile.setPath(path);
CFileDownloadResult downloadResult = fileMgr.downloadFile(getConfiguration().getUserName(),
getConfiguration().getPassword(), requestedFile);
CDownloadedFile downloadedFile = downloadResult.getDownloadedFile();
CDownloadedFile[] cdependencies = downloadResult.getDependencies();