code: private String loadTemplateFile(String templateName) {
  		String name = templateName.replace('.', '/') + ".java";
  		InputStream in = SpoonMojoGenerate.class.getClassLoader().getResourceAsStream(name);
  		String packageName = templateName.substring(0, templateName.lastIndexOf('.'));
  		String fileName = templateName.substring(templateName.lastIndexOf('.') + 1) + ".java";
  		try {
  			return TemplateLoader.loadToTmpFolder(in, packageName, fileName)
  					.getAbsolutePath();
  		} catch (IOException e) {
  			LogWrapper.warn(spoon, String.format("Template %s cannot be loaded.", templateName), e);
  			return null;
  		}
  	}
docs: Loads the template file at the path given.