* @param pattern exchange pattern to set.
* @return created exchange.
*/
protected Exchange createResourceExchange(Exchange source, ExchangePattern pattern) {
DefaultExchange target = new DefaultExchange(source.getContext());
target.copyFrom(source);
target.setPattern(pattern);
return target;
}
private static void prepareResult(Exchange exchange) {