// Convenience when examining the generated code.
sw.println("// " + resource.toExternalForm());
sw.println("public String getText() {");
sw.indent();
TreeLogger transformLogger =
logger.branch(TreeLogger.DEBUG, "Applying Transformers", null);
String toWrite =
ResourceGeneratorUtil.applyTransformations(transformLogger, method,