@EntryPoint
public ActionForward prepareSearch(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
StudentsSearchBean studentsSearchBean = getRenderedObject();
if (studentsSearchBean == null) { // 1st time
studentsSearchBean = new StudentsSearchBean();
} else {
final Set<AcademicProgram> programs = new HashSet<AcademicProgram>();
programs.addAll(Bennu.getInstance().getDegreesSet());
final Set<Student> students = studentsSearchBean.searchForPrograms(programs);
if (students.size() == 1) {
request.setAttribute("student", students.iterator().next());
return mapping.findForward("viewStudentDetails");