ServiceUtils.executeService(userView, "CreateResultEventAssociation", args); } catch (InvalidArgumentsServiceException e) { addActionMessage(request, "error.Result.not.found"); } catch (FenixServiceException e) { addActionMessage(request, e.getMessage()); } catch (DomainException e) { addActionMessage(request, e.getKey(),e.getArgs()); }
ResultEventAssociation.create(bean); } catch (Exception e) { addActionMessage(request, e.getMessage()); }
    public ActionForward createEventAssociation(ActionMapping mapping, ActionForm form,             HttpServletRequest request, HttpServletResponse response) throws Exception {        final Object renderedObject = RenderUtils.getViewState().getMetaObject().getObject();        final IUserView userView = getUserView(request);        final ResultEventAssociationCreationBean bean = (ResultEventAssociationCreationBean) renderedObject;                RenderUtils.invalidateViewState();                if(!(bean.getEvent()==null && bean.getEventNameMLS()==null)) {            final Object[] args = { bean };                        try {                ServiceUtils.executeService(userView, "CreateResultEventAssociation", args);                }            catch (InvalidArgumentsServiceException e) {                addActionMessage(request, "error.Result.not.found");            }            catch (FenixServiceException e) {                addActionMessage(request, e.getMessage());            }            catch (DomainException e) {                addActionMessage(request, e.getKey(),e.getArgs());            }        }        else {            bean.setEventNameMLS(new MultiLanguageString(bean.getEventNameStr()));            request.setAttribute("bean", bean);          }        return prepareEditEventAssociations(mapping, form, request, response);    }