/*
* Determine provider
*/
if (GfacUtils.isLocalHost(hostName)) {
return new LocalProvider();
} else {
// set Security context for executionContext
if (context.getSecurityContext(GramProvider.MYPROXY_SECURITY_CONTEXT) != null) {
context.getExecutionContext().setSecurityContext(context.getSecurityContext(GramProvider.MYPROXY_SECURITY_CONTEXT));
} else {