GlobusHostType host = (GlobusHostType) context.getExecutionDescription().getHost().getType();
for (String endpoint : host.getGridFTPEndPointArray()) {
try {
URI srcURI = GfacUtils.createGsiftpURI(endpoint, remoteSrcFile);
ftp.transfer(srcURI, dest, gssCred, true);
return;
} catch (ToolsException e) {
log.error(e.getMessage(), e);
}
}