code: @Override
    public Object getHeader(BindingProvider soapClient, String headerName) {
      for (SOAPElement addedHeader : getContextHandlerFromClient(soapClient).getAddedHeaders()) {
        if (addedHeader.getNodeName().equals(headerName)) {
          return addedHeader;
        }
      }
      return null;
    }
docs: Returns a SOAP header from the given SOAP client, if it exists.
  
  @param soapClient the SOAP client to check for the given header
  @param headerName the name of the header being looked for
  @return the header element, if it exists