Object args[] = { bean.getPerson(), bean.getExecutionYear(), bean.getSelectedUnit() }; executeService(request, "AddExamCoordinator", args);
String username = bean.getUsername(); User user = User.readUserByUserUId(username); if (user != null && user.getPerson() != null) { Object args[] = { user.getPerson(), bean.getExecutionYear(), bean.getSelectedUnit() }; executeService(request, "AddExamCoordinator", args); } else { addActionMessage(request, "label.vigilancy.inexistingUsername", null); }
    public ActionForward addExamCoordinator(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        IViewState viewState = RenderUtils.getViewState("preserveState");        VigilantGroupBean bean = (VigilantGroupBean) viewState.getMetaObject().getObject();        request.setAttribute("bean", bean);        Object args[] = { bean.getPerson(), bean.getExecutionYear(), bean.getSelectedUnit() };        executeService(request, "AddExamCoordinator", args);        return mapping.findForward("prepareExamCoordinator");    }