* @return
*/
public LeadContextHeader getDefaultLeadHeader(Workflow workflow,
String topic, String usedDN, URI instanceID,
LeadResourceMapping resourceMapping, URI scmsURL) {
LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
leadContextHelper.setXRegistryURL(XBayaConstants.DEFAULT_XREGISTRY_URL);
leadContextHelper.setGFacURL(XBayaConstants.DEFAULT_GFAC_URL);
leadContextHelper.setUser(usedDN);
leadContextHelper
.setMyLeadAgentURL(XBayaConstants.DEFAULT_MYLEAD_AGENT_URL);
leadContextHelper.setWorkflowInstanceID(instanceID);
leadContextHelper.setWorkflowTemplateID(workflow
.getUniqueWorkflowName());
MonitorConfiguration monitorConfiguration = new MonitorConfiguration(
XBayaConstants.DEFAULT_BROKER_URL, topic, true,
XBayaConstants.DEFAULT_MESSAGE_BOX_URL);
leadContextHelper.setMonitorConfiguration(monitorConfiguration);
LeadContextHeader leadContext = leadContextHelper
.getLeadContextHeader();
leadContext.setNodeId(workflow.getName());
leadContext.setTimeStep("1");