return new GeneratorModel(templateModel,filePathModel);
}
public static GeneratorModel newFromClass(Class clazz) {
Map templateModel = new HashMap();
templateModel.put("clazz", new JavaClass(clazz));
setShareVars(templateModel);
Map filePathModel = new HashMap();
setShareVars(filePathModel);
filePathModel.putAll(BeanHelper.describe(new JavaClass(clazz)));
return new GeneratorModel(templateModel,filePathModel);
}