public static void genResource(String template, OutputStream os, Object data){
		try {
			Template temp = conf.getTemplate(template);
			temp.process(data, new OutputStreamWriter(os));
		} catch (IOException e) {
			e.printStackTrace();
		} catch (TemplateException e) {
			e.printStackTrace();
		}
	}