response.readContentStream();
    private void updateResponse(int pane) {        if (error) return;        if (editable && pane == 0) {            // we must parse the rawTextArea            try {                if (response == null) response = new Response();                response.read(new ByteArrayInputStream(rawTextArea.getText().getBytes()));                response.readContentStream();                String cl = response.getHeader("Content-Length");                if (cl != null) {                    byte[] content = response.getContent();                    if (content == null) {                        response.setHeader("Content-Length","0");                    } else {                        response.setHeader("Content-Length", Integer.toString(content.length));                    }                }            } catch (Exception e) {                e.printStackTrace();                response = null;                error = true;                displayTabbedPane.setSelectedIndex(0);                return;            }            validPanel[pane] = false;        } else if (editable && pane == 1) {            // The image and HTML is not editable        }        error = false;    }