{
templateArgs.put("form", screen);
((Entity) ((Form) screen).getRecord()).getAllFields().firstElement();
UISchema parent = screen.getParent();
while (parent != null && !parent.getClass().equals(Form.class))
// gets the parent form
parent = parent.getParent();
templateArgs.put("parent_form", parent);
templateArgs.put("model", model);
templateArgs.put("package", APP_DIR + ".ui");
File targetDir = new File(this.getSourcePath(options) + APP_DIR + "/ui/");