code: public void write(File file, Map<String, String> outputProperties) throws TransformerException, IOException {
  		Writer writer = new Utf8Writer(file);
  		try {
  			write(writer, outputProperties);
  		} finally {
  			writer.close();
  		}
  	}
docs: Writes the xCal document to a file.
  @param file the file to write to (UTF-8 encoding will be used)
  @param outputProperties properties to assign to the JAXP transformer (see
  {@link Transformer#setOutputProperty})
  @throws IOException if there's a problem writing to the file
  @throws TransformerException if there's a problem writing the XML