MessageProperties messageProperties = message.getMessageProperties();
String contentType = messageProperties.getContentType();
if(messageProperties == null)
throw new MessageConversionException("Cannot decode a message with no properties!");
MessageConverter converter = converters.get(contentType);
if(converter == null) //Try to fall back
converter = this.fallbackConverter;
if(converter == null) //Can't even fall back, punt
throw new MessageConversionException("Cannot find converter for content type of "+contentType);
return converter.fromMessage(message);
}