Integer oid = Integer.parseInt(request.getParameter("resultId")); ServiceUtils.executeService(userView, "CreateResultUnitAssociation", new Object[] { bean, oid });
try { ServiceUtils.executeService(getUserView(request), "CreateResultUnitAssociation", args); } catch (InvalidArgumentsServiceException e) { addActionMessage(request, "error.Result.not.found"); } catch (FenixServiceException e) { addActionMessage(request, e.getMessage()); } catch (DomainException e) { addActionMessage(request, e.getKey()); }
    public ActionForward createUnitAssociation(ActionMapping mapping,ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        final IUserView userView = getUserView(request);        ResultUnitAssociationCreateBean bean = (ResultUnitAssociationCreateBean)RenderUtils.getViewState().getMetaObject().getObject();                Integer oid = Integer.parseInt(request.getParameter("resultId"));        ServiceUtils.executeService(userView, "CreateResultUnitAssociation", new Object[] { bean, oid });                return prepareEditUnitAssociations(mapping, form, request, response);    }