code: public void write(final OutputStream out, final Writer<? super T> writer) {
  		try (AutoCloseableXMLStreamWriter xml = XML.writer(out, "    ")) {
  			TrialMeter.<T>writer(writer).write(xml, this);
  		} catch (XMLStreamException e) {
  			throw new UncheckedIOException(new IOException(e));
  		}
  	}
docs: Writes the current {@code TrialMeter} object (the calculated samples +
  the parameters) to the given output stream.
  
  @param out the output stream where to write the trial meter
  @param writer the writer of the parameter type
  @throws UncheckedIOException if the marshalling fails