GSSCredential gssCred = ((GSISecurityContext)jobExecutionContext.getSecurityContext(GSISecurityContext.GSI_SECURITY_CONTEXT)).getGssCredentials();
for (String endpoint : gridFTPEndpointArray) {
URI inputURI = GramProviderUtils.createGsiftpURI(endpoint, app.getInputDataDirectory());
String fileName = new File(gridftpURL.getPath()).getName();
fileName = ftp.gridFTPFileExist(inputURI, fileName,gssCred);
String destLocalPath = inputURI.getPath() + File.separator + fileName;
//if user give a url just to refer an endpoint, not a web resource we are not doing any transfer
if (fileName != null && !"".equals(fileName)) {
destURI = GramProviderUtils.createGsiftpURI(endpoint, destLocalPath);