public Map < String , String > parseSoapHeader ( final Element soapHeader ) { final NodeList tpicHeaders = soapHeader . getElementsByTagNameNS ( TraceeConstants . SOAP_HEADER_NAMESPACE , TraceeConstants . TPIC_HEADER ) ; final HashMap < String , String > contextMap = new HashMap <> ( ) ; if ( tpicHeaders != null && tpicHeaders . getLength ( ) > 0 ) { final int items = tpicHeaders . getLength ( ) ; for ( int i = 0 ; i < items ; i ++ ) { contextMap . putAll ( parseTpicHeader ( ( Element ) tpicHeaders . item ( i ) ) ) ; } } return contextMap ; }
Retrieves the first TPIC header element out of the soap header and parse it