IOUtils.closeQuietly(faceletsConfigWriter);
}
}
private void writeFaceletTaglibHandler(JCompUnit unit, JClass clazz) throws IOException {
JSourceWriter sourceWriter = null;
try {
Writer writer = getEnv().getFiler().createTextFile(Filer.Location.SOURCE_TREE,
unit.getPackageName(),
new File(clazz.getLocalName()+".java"), null);
sourceWriter = new JSourceWriter(writer);
unit.print(sourceWriter);
} finally{
IOUtils.closeQuietly(sourceWriter);
}
}