Use in message for setting the result.

Use in message rather than out message for setting results - http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html .Otherwise headers and attachments are not propagated
Renamed variables