e.printStackTrace();
}
} else if (remoteProtocol.equals("ftp")) {
// set up globus FTP client
try {
FTPClient ftp = new FTPClient(remoteSite, 21);
ftp.authorize(remoteUser, remotePassword);
ftp.setType(Session.TYPE_IMAGE);
DataSinkStream outputSink = new DataSinkStream(output);
ftp.get(remotePath, outputSink, null);
} catch (Exception e) {
Log.error(Log.RESOURCES,"Problem with ftp from site: "+remoteUser+"@"+remoteSite+":"+remotePath);
e.printStackTrace();
}
} else {