List shiftList = new ArrayList(); shiftList.add(shiftId);  Object[] args = { studentId, shiftList };
Object[] args = { studentId, shiftId };
    public ActionForward execute(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws FenixFilterException {        IUserView userView = SessionUtils.getUserView(request);        ActionErrors actionErrors = new ActionErrors();        Integer shiftId = new Integer( (String)request.getParameter("shiftId"));        Integer studentId = new Integer( (String) request.getParameter("studentId"));        String executionCourseID = (String) request.getParameter("executionCourseID");        if( executionCourseID != null && !executionCourseID.equals("")){                        request.setAttribute("executionCourseID", executionCourseID);        }                List shiftList = new ArrayList();        shiftList.add(shiftId);                Object[] args = { studentId, shiftList };        try {            ShiftEnrollmentErrorReport errorReport = (ShiftEnrollmentErrorReport) ServiceUtils                    .executeService(userView, "EnrollStudentInShifts", args);            if (errorReport.getUnAvailableShifts() != null                    && errorReport.getUnAvailableShifts().size() > 0) {                Iterator iter = errorReport.getUnAvailableShifts().iterator();                while (iter.hasNext()) {                    InfoShift infoShift = (InfoShift) iter.next();                    ActionError actionError = new ActionError("error.shift.enrollment.capacityExceded",                            infoShift.getNome());                    actionErrors.add("capacityExceded", actionError);                }            }            if (errorReport.getUnExistingShifts() != null                    && errorReport.getUnExistingShifts().size() > 0) {                ActionError actionError = new ActionError("error.shift.enrollment.nonExistingShift");                actionErrors.add("nonExisting", actionError);            }        } catch (StudentNotFoundServiceException e) {            e.printStackTrace();            ActionError actionError = new ActionError("error.shift.enrollment.nonExistingStudent");            actionErrors.add("nonExisting", actionError);        } catch (FenixServiceException e) {            e.printStackTrace();            actionErrors.add("error", new ActionError(e.getMessage()));        }        if (!actionErrors.isEmpty()) {            saveErrors(request, actionErrors);            return mapping.getInputForward();        }        return mapping.findForward("enrollmentConfirmation");    }