if (_generator.getContentAdded() > 0) throw new IllegalStateException("!empty");
if (_generator.getContentWritten() > 0) throw new IllegalStateException("!empty");
        public void sendContent(Object content) throws IOException        {            if (_closed)                throw new IOException("Closed");                        if (_generator.getContentAdded() > 0) throw new IllegalStateException("!empty");            if (content instanceof HttpContent)            {                HttpContent c = (HttpContent) content;                if (c.getContentType() != null && !_responseFields.containsKey(HttpHeaders.CONTENT_TYPE_BUFFER)) _responseFields.add(HttpHeaders.CONTENT_TYPE_BUFFER, c.getContentType());                if (c.getContentLength() > 0) _responseFields.addLongField(HttpHeaders.CONTENT_LENGTH_BUFFER, c.getContentLength());                if (c.getLastModified() != null) _responseFields.add(HttpHeaders.LAST_MODIFIED_BUFFER, c.getLastModified());                if (c.getBuffer() != null) _generator.addContent(c.getBuffer(), HttpGenerator.LAST);                commitResponse(HttpGenerator.LAST);            }            else if (content instanceof Buffer)            {                _generator.addContent((Buffer) content, HttpGenerator.LAST);                commitResponse(HttpGenerator.LAST);            }            else                throw new IllegalArgumentException("unknown content type?");        }