String version = options.containsKey("version") ? options.get("version") : "n/a";
Map<String, Object> model = new HashMap<String, Object>();
model.put("version", version);
JavaFileObject sourceFile = filer.createSourceFile(VERSION_INFO_FILENAME);
OutputStream output = sourceFile.openOutputStream();
new TemplateProcessor().process(VERSION_INFO_TEMPLATE, model, output);
output.flush();
output.close();
}
}