Use a writer that emits legal java