code: public String getChargingStationAddress(MessageContext messageContext) {
          if (!(messageContext instanceof WrappedMessageContext)) {
              LOG.warn("Unable to get message context, or message context is not the right type.");
              return "";
          }
  
          Message message = ((WrappedMessageContext) messageContext).getWrappedMessage();
          List<Header> headers = CastUtils.cast((List<?>) message.get(Header.HEADER_LIST));
  
          for (Header h : headers) {
              Element n = (Element) h.getObject();
  
              if ("From".equals(n.getLocalName())) {
                  return n.getTextContent();
              }
          }
  
          LOG.warn("No 'From' header found in request. Not able to determine charging station address.");
          return "";
      }
docs: Gets the charging station address from the SOAP "From" header.
  
  @param messageContext message context
  @return charging station address, or empty string if From header is empty or doesn't exist.