code: public void setData(byte[] data) throws IOException {
          output = new ByteArrayOutputStream();
          output.write(data);
          output.flush();
          setContentLength(output.size());
      }
docs: Sets the body of this response.
  
  @param data
  the data to set the body of this reponse to
  @throws IOException