code: private void writeAndFlushValue(OutputStream output, Object value) throws IOException {
  		mapper.writeValue(new NoCloseOutputStream(output), value);
  		output.flush();
  	}
docs: Writes and flushes a value to the given {@link OutputStream}
  and prevents Jackson from closing it.
  
  @param output the {@link OutputStream}
  @param value  the value to write
  @throws IOException on error