if(iep.getIdInternal() == ioits.getKeyExecutionPeriod()) {
if(iep.equals(ioits.getExecutionPeriod())) {
    public ActionForward prepare(ActionMapping actionMapping,            ActionForm actionForm, HttpServletRequest request,            HttpServletResponse response) throws Exception {        IUserView userView = (IUserView) request.getSession().getAttribute(SessionConstants.U_VIEW);        HttpSession session = request.getSession();        InfoTeacher it = (InfoTeacher)session.getAttribute(SessionConstants.INFO_TEACHER);                request.setAttribute("infoTeacher", it);        List executionPeriodList = (List)ServiceUtils.executeService(userView, "ReadExecutionPeriods", null);                Object[] args = { it.getTeacherNumber() };        List teachersRes = (List)ServiceUtils.executeService(userView, "ReadOldInquiriesTeachersResByTeacherNumber", args);                Iterator periodIter = executionPeriodList.iterator();        while(periodIter.hasNext()) {            InfoExecutionPeriod iep = (InfoExecutionPeriod)periodIter.next();            boolean found = false;            Iterator teachersResIter = teachersRes.listIterator();            while(teachersResIter.hasNext()) {                InfoOldInquiriesTeachersRes ioits = (InfoOldInquiriesTeachersRes)teachersResIter.next();                if(iep.getIdInternal() == ioits.getKeyExecutionPeriod()) {                    found = true;                    break;                }            }                        if(!found) {                periodIter.remove();            }        }                        Collections.sort(executionPeriodList, new BeanComparator("beginDate", new ReverseComparator(new ComparableComparator())));        request.setAttribute("executionPeriodList", executionPeriodList);        DynaActionForm inquiriesForm = (DynaActionForm) actionForm;        Integer executionPeriodId = (Integer) inquiriesForm.get("executionPeriodId");                if(executionPeriodId != null) {                        if(executionPeriodId.intValue() > 0) {                                Iterator teachersResIter = teachersRes.listIterator();                while(teachersResIter.hasNext()) {                    InfoOldInquiriesTeachersRes ioits = (InfoOldInquiriesTeachersRes)teachersResIter.next();                    if(!ioits.getKeyExecutionPeriod().equals(executionPeriodId)) {                        teachersResIter.remove();                    }                }                //                if(teachersRes.size() == 1) {//        	        request.setAttribute("oldInquiryTeachersResList", teachersRes);//        	        return actionMapping.findForward("showOldInquiriesTeacherRes");//                }                                                                request.setAttribute("oldInquiriesTeachersResListOfLists", joinSimilarOldInquiries(teachersRes));                        } else if(executionPeriodId.intValue() < 0) {                                //                if(teachersRes.size() == 1) {//        	        request.setAttribute("oldInquiryTeachersResList", teachersRes);//        	        return actionMapping.findForward("showOldInquiriesTeacherRes");//                }                request.setAttribute("oldInquiriesTeachersResListOfLists", joinSimilarOldInquiries(teachersRes));            }        }        return actionMapping.findForward("chooseExecutionPeriodAndCourse");    }