code: public static Messaging getMessaging(final Jaxb2Marshaller jaxb2Marshaller, final WebServiceMessage message) {
  
          SoapHeader soapHeader = ((SoapMessage) message).getSoapHeader();
          if (soapHeader == null) {
              throw new RuntimeException("The ebMS header is missing (no SOAP header found in SOAP request)");
          }
  
          Iterator<SoapHeaderElement> soapHeaderElementIterator = soapHeader.examineHeaderElements(MESSAGING_QNAME);
          if (!soapHeaderElementIterator.hasNext()) {
              throw new RuntimeException("The ebMS header is missing in SOAP header");
          }
  
          SoapHeaderElement incomingSoapHeaderElement = soapHeaderElementIterator.next();
          try {
              return (Messaging) jaxb2Marshaller.unmarshal(incomingSoapHeaderElement.getSource());
          } catch (Exception e) {
              throw new RuntimeException("The ebMs header failed to unmarshall");
          }
  
      }
docs: Enten returnerer denne et Messaging objekt, eller så kaster den en RuntimeException