code: public byte[] getOutput() {
  		if (stringWriter != null) {
  			byte[] output = null;
  
  			String string = stringWriter.toString();
  			if (string != null) {
  				try {
  					output = string.getBytes(characterEncoding);
  				} catch (UnsupportedEncodingException uue) {
  					output = null;
  				}
  			}
  
  			return output;
  		} else if (outputStream != null) {
  			return outputStream.getOutput();
  		}
  
  		return null;
  	}
docs: Retrieves the content written to the response.
  
  @return the content written to the response outputStream or printWriter. Null is returned if neither
  {@link #getOutputStream()} or {@link #getWriter()} have been called.