public ActionForward history(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws Exception {
List<ThesisLibraryOperation> operations = new ArrayList<ThesisLibraryOperation>();
Thesis thesis = getThesis(request);
if (thesis.getLastLibraryOperation() != null) {
ThesisLibraryOperation last = thesis.getLastLibraryOperation();
do {
operations.add(last);
} while ((last = last.getPrevious()) != null);
}
request.setAttribute("history", operations);
return view(mapping, actionForm, request, response);
}