/* 216 */ if (unboundHeaders != null)
/* */ {
/* 218 */ Iterator it = unboundHeaders.values().iterator();
/* 219 */ while (it.hasNext())
/* */ {
/* 221 */ UnboundHeader unboundHeader = (UnboundHeader)it.next();
/* 222 */ if (unboundHeader.getMode() != ParameterMode.OUT)
/* */ {
/* 224 */ QName xmlName = unboundHeader.getXmlName();
/* 225 */ Object value = unboundHeader.getHeaderValue();
/* */
/* 227 */ xmlName = namespaceRegistry.registerQName(xmlName);
/* 228 */ Name soapName = new NameImpl(xmlName.getLocalPart(), xmlName.getPrefix(), xmlName.getNamespaceURI());
/* */
/* 230 */ this.log.debug("Add unboundHeader element: " + soapName);
/* 231 */ SOAPContentElement contentElement = new SOAPHeaderElementImpl(soapName);
/* 232 */ contentElement.setParamMetaData(unboundHeader.toParameterMetaData(opMetaData));
/* */
/* 234 */ if (soapHeader == null) {
/* 235 */ soapHeader = soapEnvelope.addHeader();
/* */ }
/* 237 */ soapHeader.addChildElement(contentElement);