leadContextHelper.setWorkflowInstanceID(workflow.getGPELInstanceID());
leadContextHelper.setWorkflowTemplateID(workflow.getUniqueWorkflowName());
leadContextHelper.setMonitorConfiguration(monitorConfiguration);
LeadContextHeader leadContext = leadContextHelper.getLeadContextHeader();
leadContext.setNodeId(nodeId);
leadContext.setTimeStep("1");
// leadContext.setXRegistryUrl(new URI(configuration.getXRegistryURL().toString() + "?wsdl"));
if (resourceMapping != null) {
leadContext.setResourceMapping(resourceMapping);
}
return leadContext;
}