Map<String, SignedHeaderValueMessageProcessor<String>> urlHeaderToSign = new HashMap<String, SignedHeaderValueMessageProcessor<String>>();
URI su = URI.create(uri);
urlHeaderToSign.put("x-url", new SignedHeaderValueMessageProcessor<String>(su.getPath()));
urlHeaderToSign.put("x-user", new SignedHeaderValueMessageProcessor<String>("notification"));
NotificationMessageEnricher signer = new NotificationMessageEnricher(urlHeaderToSign);
signer.setMessageProcessor(new MethodInvokingMessageProcessor(notificationUtils, "signMessageHeaders"));
MessageTransformingHandler mth = new MessageTransformingHandler(signer);
mth.setBeanName(platformType + "Signer");
mth.setBeanFactory(context.getBeanFactory());
mth.setChannelResolver(channelResolver);