class ProjectUKCorrespondenceAddressController extends AddressLookupBaseController {

    @PreAuthorize("hasPermission(#projectId, 'org.innovateuk.ifs.project.resource.ProjectCompositeId', 'ACCESS_PROJECT_ADDRESS_PAGE')")
    @GetMapping("/{projectId}/details/project-address/UK")
    public String viewAddress(@PathVariable("projectId") final Long projectId,
                              Model model,
                              @ModelAttribute(name = FORM_ATTR_NAME, binding = false) ProjectDetailsAddressForm form) {

        ProjectResource project = projectService.getById(projectId);
        ProjectDetailsAddressViewModel projectDetailsAddressViewModel = loadDataIntoModel(project);
        if (project.getAddress() != null) {
            form.getAddressForm().editAddress(project.getAddress());
        }

        model.addAttribute("model", projectDetailsAddressViewModel);
        return "project/details-address";
    }

}