addActionMessage("error", request, "error.phd.accounting.events.insurance.invalid.execution.period", process
.getExecutionYear().getQualifiedName());
return prepareCreateInsuranceEvent(mapping, actionForm, request, response);
}
final InvocationResult result =
new AccountingEventsManager().createInsuranceEvent(process.getPerson(), bean.getExecutionYear());
if (result.isSuccess()) {
addActionMessage("success", request, "message.phd.accounting.events.insurance.created.with.success");
return prepare(mapping, actionForm, request, response);
} else {
addActionMessages("error", request, result.getMessages());
}
} catch (DomainExceptionWithInvocationResult e) {
addActionMessages("error", request, e.getInvocationResult().getMessages());
} catch (DomainException e) {