protected void generateJavaClass(String className, Template mustache, ImmutableMap<String, ? extends Object> ctx,
Set<Element> originatingElements) throws IOException {
JavaFileObject fileObject = processingEnv.getFiler().createSourceFile(className,
Iterables.toArray(originatingElements, Element.class));
try (Writer writer = fileObject.openWriter()) {
mustache.execute(ctx, writer);
}
}
@Override