}
public ActionForward editPartyContact(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws FenixServiceException {
if (getRenderedObject("edit-contact") instanceof PartyContactBean) {
PartyContactBean contact = getRenderedObject("edit-contact");
Boolean wasValidated = false;
try {
if (contact.hasPartyContact()) {
addActionMessage("contacts", request, "label.contact.validate.already", contact.getValue());
return backToShowInformation(mapping, actionForm, request, response);
}
wasValidated = editContact(contact);
} catch (DomainException e) {
addActionMessage("contacts", request, e.getMessage(), e.getArgs());
}
if (wasValidated) {
addWarningMessage(request, contact);
return forwardToInputValidationCode(mapping, actionForm, request, response, contact.getContact());
}
return backToShowInformation(mapping, actionForm, request, response);
}
return null;
}