MessageRef myMessageRef = myMessageGroup.getMessageRefByName(aMessageName);
MimeMessage myMimeMessage = javaMailSender.createMimeMessage();
SendConfig mySendConfig =
sendConfigGroup.lookupSendConfig(mySubscriber, mySubscription, myMessageGroup, myMessageRef);
if (mySendConfig == null) {
throw new IllegalStateException("No SendConfig for this message, cannot continue!");
}