@SuppressWarnings("unchecked")
@Converter
public static org.springframework.integration.message.Message toSpringMessage(final org.apache.camel.Message camelMessage) throws Exception {
if (camelMessage instanceof SpringIntegrationMessage) {
SpringIntegrationMessage siMessage = (SpringIntegrationMessage)camelMessage;
org.springframework.integration.message.Message message = siMessage.getMessage();
if (message != null) {
return message;
}
}