soapHeaderBlock.addAttribute("activityID", (String) synapseContext
.getProperty("bam_activity_id"), null);
}
bampropertyElement.addAttribute("name", propName, null);
bampropertyElement.addAttribute("value", propValue, null);
soapHeaderBlock.addChild(bampropertyElement);
} else {
// If the BAM header already present
// 1. If activity id is not present generate a one and include it to BAM header
// 2. Set activity id in synapse context for response path
OMElement bamHeader = (OMElement)itr.next();