HostDescription hostDescription = jobExecutionContext.getApplicationContext().getHostDescription();
if(hostDescription.getType() instanceof GlobusHostType){
return new GramProvider();
}
else if (hostDescription.getType() instanceof UnicoreHostType) {
return new BESProvider();
}
else if (hostDescription.getType() instanceof Ec2HostType) {
return new EC2Provider();
}
else if (hostDescription.getType() instanceof SSHHostType) {