class WelcomePageGenerator {

	public void buildWelcomeHtmlFile(Path moduleResources, Path outputFile) throws IOException {
		StringBuilder welcomePage = new StringBuilder();
		welcomePage.append(before);

		File[] children = moduleResources.toFile().listFiles();
		if (children == null) {
			throw new CarnotzetDefinitionException(
					"Resources folder does not exist or is not a directory : [" + moduleResources + "]");
		}
		Arrays.sort(children);
		for (File child : children) {
			appendWelcomeFrom(child, welcomePage);
		}

		welcomePage.append(after);

		String welcomePageStr = welcomePage.toString();

		for (WelcomePagePostProcessor postProcessor : postProcessors) {
			welcomePageStr = postProcessor.process(welcomePageStr);
		}

		Files.write(welcomePageStr, outputFile.toFile(), Charsets.UTF_8);
	}

	public  WelcomePageGenerator();
	public  WelcomePageGenerator(List<WelcomePagePostProcessor> postProcessors);

}