HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);  Object[] args = {userView.getUtilizador()}; List infoStudents = null;  infoStudents = (List) ServiceUtils.executeService(userView,"ViewStudentsByTutor",args);  if (infoStudents.size() > 1) {  Collections.sort(infoStudents, new BeanComparator( "infoStudent.number"));
HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);  Object[] args = { userView.getUtilizador() }; List infoStudents = null;  infoStudents = (List) ServiceUtils.executeService(userView, "ViewStudentsByTutor", args);  if (!infoStudents.isEmpty()) {  Collections.sort(infoStudents, new BeanComparator("infoStudent.number"));
	public ActionForward execute(		ActionMapping mapping,		ActionForm actionForm,		HttpServletRequest request,		HttpServletResponse response)		throws Exception {		HttpSession session = request.getSession(false);		IUserView userView =			(IUserView) session.getAttribute(SessionConstants.U_VIEW);				Object[] args = {userView.getUtilizador()};		 List infoStudents = null;		 		 infoStudents = (List) ServiceUtils.executeService(userView,"ViewStudentsByTutor",args);				if (infoStudents.size() > 1) {            //order list by number            Collections.sort(infoStudents, new BeanComparator(                    "infoStudent.number"));            request.setAttribute("studentsOfTutor", infoStudents);        }		return mapping.findForward("viewStudentsByTutor");	}