public ActionForward prepareSearchStudent(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
final Object renderedObject = getRenderedObject("student-number-bean");
if (renderedObject == null) {
request.setAttribute("studentNumberBean", new StudentNumberBean());
} else {
final StudentNumberBean numberBean = (StudentNumberBean) renderedObject;
final Student student = getStudent(numberBean);
if (student != null) {
RenderUtils.invalidateViewState();
request.setAttribute("registrations", getAllRegistrations(student));
request.setAttribute("studentNumberBean", numberBean);