throws Exception
{
if (context.getInMessage().getHeader() == null)
return;
SoapVersion version = context.getInMessage().getSoapVersion();
List elements = context.getInMessage().getHeader().getChildren();
for (int i = 0; i < elements.size(); i++)
{
Element e = (Element) elements.get(i);
String mustUnderstand = e.getAttributeValue("mustUnderstand",
Namespace.getNamespace(version.getNamespace()));
if (mustUnderstand != null && ( mustUnderstand.equals("1") || (version == Soap12.getInstance() && mustUnderstand.equals("true"))) )
{
assertUnderstandsHeader(context, new QName(e.getNamespaceURI(), e.getName()));
}