// DS.That is a new message. So, doesn't have activityID.Getting activityID
// from the synapsecontext.property
soapHeaderBlock.addAttribute("activityID", uuid_string, null);
synapseContext.setProperty("bam_activity_id", uuid_string);
} else {
soapHeaderBlock.addAttribute("activityID", (String) synapseContext
.getProperty("bam_activity_id"), null);
}
bampropertyElement.addAttribute("name", propName, null);
bampropertyElement.addAttribute("value", propValue, null);
soapHeaderBlock.addChild(bampropertyElement);