ODEClient odeClient = new ODEClient();
GSSCredential credential = SecurityUtil.getGSSCredential("chathura", "changeme", XBayaConstants.DEFAULT_MYPROXY_SERVER);
XRegistryAccesser xregistryAccesser = new XRegistryAccesser(credential, XBayaConstants.DEFAULT_XREGISTRY_URL);
Workflow workflow = xregistryAccesser.getWorkflow(name);
GsiInvoker secureInvoker = null;
secureInvoker = new GsiInvoker(credential, XBayaSecurity
.getTrustedCertificates());
try {
LeadContextHeader defaultLeadHeader = odeClient.getDefaultLeadHeader(workflow, topic,
credential.getName().toString(), new URI(topic), null, null);