code: public void closeReport(Report report)
  			throws IOException
  	{
  		FileWriter out = null;
  		try
  		{
  			File reportFile = new File(reportsDirectory, outputNameOf(report));
  			IOUtil.createDirectoryTree(reportFile.getParentFile());
  			out = new FileWriter(reportFile);
  			report.printTo(out);
  			out.flush();
  		}
  		finally
  		{
  			IOUtil.closeQuietly(out);
  		}
  	}
docs: {@inheritDoc}