private String stageInputFiles(InvocationContext invocationContext, String paramValue, ActualParameter actualParameter) throws URISyntaxException, SecurityException, ToolsException, IOException {
URI gridftpURL;
gridftpURL = new URI(paramValue);
GlobusHostType host = (GlobusHostType) invocationContext.getExecutionDescription().getHost().getType();
ApplicationDeploymentDescriptionType app = invocationContext.getExecutionDescription().getApp().getType();
GridFtp ftp = new GridFtp();
URI destURI = null;
gssContext = (GSISecurityContext) invocationContext.getSecurityContext(MYPROXY_SECURITY_CONTEXT);
GSSCredential gssCred = gssContext.getGssCredentails();
for (String endpoint : host.getGridFTPEndPointArray()) {
URI inputURI = GfacUtils.createGsiftpURI(endpoint, app.getInputDataDirectory());
String fileName = new File(gridftpURL.getPath()).getName();
String s = 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 = GfacUtils.createGsiftpURI(endpoint, s);