shiftTypeNames.add("Sem Shift");
shiftTypeNames.add("Sem Turno");
    public ActionForward prepareEditGroupProperties(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException,            FenixFilterException {        String groupPropertiesCodeString = request.getParameter("groupPropertiesCode");        Integer groupPropertiesCode = new Integer(groupPropertiesCodeString);        ISiteComponent viewGroupProperties = new InfoSiteGroupProperties();        SiteView siteView = readSiteView(request, viewGroupProperties, null, groupPropertiesCode, null);        if (((InfoSiteGroupProperties) siteView.getComponent()).getInfoGroupProperties() == null) {            ActionErrors actionErrors = new ActionErrors();            ActionError error = null;            error = new ActionError("error.noGroupProperties");            actionErrors.add("error.noGroupProperties", error);            saveErrors(request, actionErrors);            return prepareViewExecutionCourseProjects(mapping, form, request, response);        }        List shiftTypeValues = new ArrayList();        shiftTypeValues.add(new Integer(1));        shiftTypeValues.add(new Integer(2));        shiftTypeValues.add(new Integer(3));        shiftTypeValues.add(new Integer(4));        shiftTypeValues.add(new Integer(5));        List shiftTypeNames = new ArrayList();        shiftTypeNames.add("Terica");        shiftTypeNames.add("Prtica");        shiftTypeNames.add("Terico-Prtica");        shiftTypeNames.add("Laboratorial");        shiftTypeNames.add("Sem Shift");        List enrolmentPolicyValues = new ArrayList();        enrolmentPolicyValues.add(new Integer(1));        enrolmentPolicyValues.add(new Integer(2));        List enrolmentPolicyNames = new ArrayList();        enrolmentPolicyNames.add("Atmica");        enrolmentPolicyNames.add("Individual");        InfoGroupProperties infoGroupProperties = ((InfoSiteGroupProperties) siteView.getComponent())                .getInfoGroupProperties();        Integer enrolmentPolicy = infoGroupProperties.getEnrolmentPolicy().getType();        enrolmentPolicyValues.remove(enrolmentPolicy.intValue() - 1);        String enrolmentPolicyName = enrolmentPolicyNames.remove(enrolmentPolicy.intValue() - 1)                .toString();        Integer shiftType = null;        String shiftTypeName = null;        TipoAula tipoAula = infoGroupProperties.getShiftType();        if (tipoAula != null) {            shiftType = tipoAula.getTipo();            shiftTypeValues.remove(shiftType.intValue() - 1);            shiftTypeName = shiftTypeNames.remove(shiftType.intValue() - 1).toString();        } else {            shiftType = new Integer(5);            shiftTypeValues.remove(4);            shiftTypeName = shiftTypeNames.remove(4).toString();        }        request.setAttribute("shiftTypeName", shiftTypeName);        request.setAttribute("shiftTypeValue", shiftType);        request.setAttribute("shiftTypeValues", shiftTypeValues);        request.setAttribute("shiftTypeNames", shiftTypeNames);        request.setAttribute("enrolmentPolicyName", enrolmentPolicyName);        request.setAttribute("enrolmentPolicyValue", enrolmentPolicy);        request.setAttribute("enrolmentPolicyValues", enrolmentPolicyValues);        request.setAttribute("enrolmentPolicyNames", enrolmentPolicyNames);        return mapping.findForward("editGroupProperties");    }