final Person person = getUserView(request).getPerson();     request.setAttribute("registrations", (person.hasStudent()) ? person.getStudent() .getRegistrations() : person.getStudents());
request.setAttribute("registrations", getUserView(request).getPerson().getStudent().getRegistrations());
    public ActionForward prepare(ActionMapping mapping, ActionForm form, HttpServletRequest request,	    HttpServletResponse response) throws FenixActionException, FenixFilterException,	    FenixServiceException {	final Person person = getUserView(request).getPerson();	// FIXME: after old student migration this test should be remove	// registrations should be read using        // person.getStudent().getRegistrations()	request.setAttribute("registrations", (person.hasStudent()) ? person.getStudent()		.getRegistrations() : person.getStudents());	return mapping.findForward("chooseRegistration");    }