String schema = createParameterJsonSchema(languageModel, properties);
log.debug("JSon schema\n" + schema);
File dir = new File(schemaOutDir, schemaSubDirectory(languageModel.getJavaType()));
dir.mkdirs();
File out = new File(dir, name + ".json");
<BUG>FileOutputStream fos = new FileOutputStream(out, false);
fos.write(schema.getBytes());
fos.close();
buildContext.refresh(out);</BUG>
log.debug("Generated " + out + " containing JSon schema for " + name + " language");

String schema = createParameterJsonSchema(languageModel, properties);
log.debug("JSon schema\n" + schema);
File dir = new File(schemaOutDir, schemaSubDirectory(languageModel.getJavaType()));
dir.mkdirs();
File out = new File(dir, name + ".json");
try (OutputStream fos = buildContext.newFileOutputStream(out)) {
fos.write(schema.getBytes());
