class ProjectInternationalCorrespondenceAddressController extends AddressLookupBaseController {

    @GetMapping
    public String viewAddress(@PathVariable("projectId") final Long projectId,
                              Model model,
                              @ModelAttribute(name = FORM_ATTR_NAME, binding = false) ProjectInternationalCorrespondenceAddressForm form) {

        ProjectResource project = projectService.getById(projectId);

        if(project.getAddress() != null) {
            form.populate(project.getAddress());
        }

        model.addAttribute("model", new ProjectInternationalCorrespondenceAddressViewModel(project));
        return "project/international-address";
    }

}