public static void outModel(ModelClassDesc modelClassDesc)
			throws IOException, TemplateException {
		Template temp = config.getTemplate("model.ftl");
		String path = modelClassDesc.getPackgeName().replace(".", "/") + "/model/";

		File file = new File(FreeMarkerUtils.class.getResource("/").getPath()
				+ "/src/" + path);
		if (!file.exists()) {
			file.mkdirs();
		}
		File file2 = new File(FreeMarkerUtils.class.getResource("/").getPath()
				+ "src/" + path + modelClassDesc.getClassName() + ".java");
		if (file2.exists()) {
			file2.delete();
		}
		file2.createNewFile();
		FileWriter fw = new FileWriter(file2);
		Map<String, Object> root = new HashMap<String, Object>();
		root.put("modelClassDesc", modelClassDesc);
		temp.process(root, fw);
		temp.process(root, new OutputStreamWriter(System.out));
		fw.flush();
		fw.close();
	}