code: public void printTo(Writer writer)
  			throws IOException
  	{
  		if (exception != null)
  		{
  			writer.write(ExceptionUtils.stackTrace(exception, "\n"));
  			writer.flush();
  			return;
  		}
  
  		if (execution != null)
  		{
  			writer.write(toHtml(execution, true));
  			writer.flush();
  		}
  	}
docs: {@inheritDoc}