for (String paramName : parameters.keySet()) {
ActualParameter actualParameter = (ActualParameter) parameters
.get(paramName);
GridFtp ftp = new GridFtp();
GSSCredential gssCred = ((GSISecurityContext)jobExecutionContext.getSecurityContext(GSISecurityContext.GSI_SECURITY_CONTEXT)).getGssCredentails();
try {
if ("URI".equals(actualParameter.getType().getType().toString())) {
for (String endpoint : gridFTPEndpointArray) {
((URIParameterType) actualParameter.getType()).setValue(doStaging(outputFileStagingPath,
MappingFactory.toString(actualParameter), ftp, gssCred, endpoint));