class MavenBuildProjectContributor implements BuildWriter, ProjectContributor {

	private final MavenBuild build;

	private final IndentingWriterFactory indentingWriterFactory;

	private final MavenBuildWriter buildWriter;

	public MavenBuildProjectContributor(MavenBuild build, IndentingWriterFactory indentingWriterFactory) {
		this.build = build;
		this.indentingWriterFactory = indentingWriterFactory;
		this.buildWriter = new MavenBuildWriter();
	}

	@Override
	public void contribute(Path projectRoot) throws IOException {
		Path pomFile = Files.createFile(projectRoot.resolve("pom.xml"));
		writeBuild(Files.newBufferedWriter(pomFile));
	}

	@Override
	public void writeBuild(Writer out) throws IOException {<FILL_FUNCTION_BODY>}

}

		try (IndentingWriter writer = this.indentingWriterFactory.createIndentingWriter("maven", out)) {
			this.buildWriter.writeTo(writer, this.build);
		}
	
<no_super_class>