out.flush();
out.close();
CachedOutputStream stream = message.get(CachedOutputStream.class);
copy.setContent(InputStream.class, stream.getInputStream());
copy.removeContent(CachedOutputStream.class);
// Create a new incoming exchange and store the original exchange for the response
ExchangeImpl ex = new ExchangeImpl();
ex.setInMessage(copy);
ex.put(IN_EXCHANGE, message.getExchange());