}
public ActionForward editPersonalInformation(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
final PhdProgramCandidacyProcessBean bean = getCandidacyBean();
final PhdIndividualProgramProcess individualProgramProcess = bean.getCandidacyHashCode().getIndividualProgramProcess();
final Person person = individualProgramProcess.getPerson();
canEditPersonalInformation(request, person);
PersonBean personBean = bean.getPersonBean();
final String familyName = personBean.getFamilyNames();
final String composedName =
familyName == null || familyName.isEmpty() ? personBean.getGivenNames() : personBean.getGivenNames() + " "
+ familyName;
personBean.setName(composedName);
try {
ExecuteProcessActivity.run(individualProgramProcess, EditPersonalInformation.class, bean.getPersonBean());
} catch (final DomainException e) {
addErrorMessage(request, e.getKey(), e.getArgs());
request.setAttribute("candidacyBean", bean);
return mapping.findForward("editPersonalInformation");
}
return viewCandidacy(mapping, request, bean.getCandidacyHashCode());
}