private ActionForward forwardToShow(Registration registration, ActionMapping mapping, HttpServletRequest request)
throws Exception {
request.setAttribute("registrationId", registration.getExternalId());
UserPrivateKey privateKey = Authenticate.getUser().getPrivateKey();
if (privateKey != null && privateKey.getPrivateKeyValidity() != null
&& privateKey.getPrivateKeyValidity().isAfter(new DateTime())) {
if (privateKey.getPrivateKeyValidity() != null) {
request.setAttribute("expirationDate", privateKey.getPrivateKeyValidity().toString("dd/MM/yyyy HH:mm"));
request.setAttribute("user", Authenticate.getUser().getUsername());
request.setAttribute("classURL", getUrl("syncClasses", registration, request));
request.setAttribute("examsURL", getUrl("syncExams", registration, request));
}
request.setAttribute("stillValid", true);