final SortedSet<GenericApplicationPeriod> periods = GenericApplicationPeriod.getPeriods();
request.setAttribute("periods", periods);
final User userView = Authenticate.getUser();
if (userView != null && userView.getPerson().hasRole(RoleType.MANAGER)) {
final GenericApplicationPeriodBean genericApplicationPeriodBean = new GenericApplicationPeriodBean();
request.setAttribute("genericApplicationPeriodBean", genericApplicationPeriodBean);
}
return mapping.findForward("genericApplications.listApplicationPeriods");
}