GramJob job = new GramJob("");
job.setID(context.getExecutionModel().getJobID());
job.setCredentials(((GSISecurityContext) context.getSecurityContext()).getGssCredentails());
job.cancel();
} catch (MalformedURLException e) {
throw new GfacException(e, FaultCode.ErrorAtDependentService);
} catch (GramException e) {
throw new GfacException(e, FaultCode.ErrorAtDependentService);
} catch (GSSException e) {
throw new GfacException(e, FaultCode.ErrorAtDependentService);
}
}