FileOutputStream dstStream = null;
SCClient client = null;
try {
// try to connect client
client = connectClientToService(service);
SCFileService scFileService = client.newFileService(service.getName());
dstStream = new FileOutputStream(dstFile);
scFileService.downloadFile(remoteFile, dstStream);
writer.writeStartElement("message");
writer.writeCharacters(dstFile.getName() + " " + status);
writer.writeEndElement();
} catch (Exception e) {
status = "failed";