private void addModelAttributes(
      PageModel model,
      Patient patient,
      NavigableFormStructure formStructure,
      AdministrationService adminService,
      String returnUrl)
      throws Exception {

    model.addAttribute("returnUrl", returnUrl);
    model.put("uiUtils", new RegistrationAppUiUtils());
    model.addAttribute("patient", patient);
    model.addAttribute("addressTemplate", AddressSupport.getInstance().getAddressTemplate().get(0));
    model.addAttribute("formStructure", formStructure);
    model.addAttribute(
        "enableOverrideOfAddressPortlet",
        adminService.getGlobalProperty("addresshierarchy.enableOverrideOfAddressPortlet", "false"));
  }
 public void controller(FragmentModel model) {
   model.addAttribute("layoutTemplate", AddressSupport.getInstance().getDefaultLayoutTemplate());
 }