if (_request != null) { InputStream is = _request.getContentStream(); if (is != null && is instanceof CopyInputStream) { _request.setContent(((CopyInputStream) is).toByteArray()); _request.setContentStream(null); } }
    public Request getRequest() {        if (_request != null) {            InputStream is = _request.getContentStream();            if (is != null && is instanceof CopyInputStream) {                _request.setContent(((CopyInputStream) is).toByteArray());                _request.setContentStream(null);            }        }        return _request;    }