* @throws URISyntaxException
*/
public static LeadContextHeader buildLeadContextHeader(Workflow workflow, XBayaConfiguration configuration,
MonitorConfiguration monitorConfiguration, String nodeId, LeadResourceMapping resourceMapping)
throws URISyntaxException {
LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
leadContextHelper.setXBayaConfiguration(configuration);
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"));