StandardLocation.SOURCE_OUTPUT, "", targetFacesConfigFile);
info("Writing to file: " + resource.toUri());
writer = resource.openWriter();
final StringWriter facesConfig = new StringWriter(1024);
final Format format = Format.getPrettyFormat();
format.setLineSeparator(SEPARATOR);
final XMLOutputter out = new XMLOutputter(format);
out.output(document, facesConfig);
writer.append(facesConfig.toString());
} finally {