ActionError error = null; error = new ActionError("error.noGroup");
ActionError error = new ActionError("error.noGroup");
    public ActionForward insertStudentGroupMembers(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException,            FenixFilterException {        HttpSession session = request.getSession(false);        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        Integer objectCode = getObjectCode(request);        String studentGroupCodeString = request.getParameter("studentGroupCode");        Integer studentGroupCode = new Integer(studentGroupCodeString);        String groupPropertiesCodeString = request.getParameter("groupPropertiesCode");        Integer groupPropertiesCode = new Integer(groupPropertiesCodeString);        DynaActionForm insertStudentGroupForm = (DynaActionForm) form;        List studentUsernames = Arrays.asList((String[]) insertStudentGroupForm.get("studentsToInsert"));        Object args[] = { objectCode, studentGroupCode, groupPropertiesCode, studentUsernames };        try {            ServiceManagerServiceFactory.executeService(userView, "InsertStudentGroupMembers", args);        } catch (ExistingServiceException e) {            ActionErrors actionErrors = new ActionErrors();            ActionError error = null;            error = new ActionError("error.noGroup");            actionErrors.add("error.noGroup", error);            saveErrors(request, actionErrors);            return viewShiftsAndGroups(mapping, form, request, response);        } catch (InvalidChangeServiceException e) {            ActionErrors actionErrors = new ActionErrors();            ActionError error = null;            error = new ActionError("error.insertStudentGroupMembers.AttendsSet");            actionErrors.add("error.insertStudentGroupMembers.AttendsSet", error);            saveErrors(request, actionErrors);            return prepareViewExecutionCourseProjects(mapping, form, request, response);        } catch (InvalidSituationServiceException e) {            ActionErrors actionErrors = new ActionErrors();            ActionError error = null;            error = new ActionError("errors.existing.studentInGroup");            actionErrors.add("errors.existing.studentInGroup", error);            saveErrors(request, actionErrors);            return prepareEditStudentGroupMembers(mapping, form, request, response);        } catch (InvalidArgumentsServiceException e) {            ActionErrors actionErrors = new ActionErrors();            ActionError error = null;            error = new ActionError("error.editStudentGroupMembers");            actionErrors.add("error.editStudentGroupMembers", error);            saveErrors(request, actionErrors);            return prepareEditStudentGroupMembers(mapping, form, request, response);        } catch (FenixServiceException e) {            throw new FenixActionException(e);        }        return prepareEditStudentGroupMembers(mapping, form, request, response);    }