HttpComponent comp = (HttpComponent) endpoint.getServiceUnit().getComponent(); if (comp.getConfiguration().isStreamingEnabled()) {
if (getConfiguration().isStreamingEnabled()) {
    protected RequestEntity writeMessage(SoapWriter writer) throws Exception {        HttpComponent comp = (HttpComponent) endpoint.getServiceUnit().getComponent();        if (comp.getConfiguration().isStreamingEnabled()) {            return new StreamingRequestEntity(writer);        } else {            ByteArrayOutputStream baos = new ByteArrayOutputStream();            writer.write(baos);            return new ByteArrayRequestEntity(baos.toByteArray(), writer.getContentType());        }    }