copyPropertiesAndAttachments(exchange, in, out);
    protected boolean transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage out) throws MessagingException {        PostMethod method = new PostMethod(url);        try {            marshaler.fromNMS(method, exchange, in);            if (url != null) {                hostConfiguration.setHost(new URI(url, false));            }            int response = httpClient.executeMethod(hostConfiguration, method);            if (response != HttpStatus.SC_OK) {                throw new InvalidStatusResponseException(response);            }            // now lets grab the output and set it on the out message            if (defaultInOut) {                copyPropertiesAndAttachments(exchange, in, out);                marshaler.toNMS(out, method);            }            return defaultInOut;        }        catch (Exception e) {            throw new MessagingException("Error executing http request", e);        }        finally {            method.releaseConnection();        }    }