RenderUtils.invalidateViewState();
final GenericApplication application = getDomainObject(request, "applicationExternalId");
final String confirmationCode = (String) getFromRequest(request, "confirmationCode");
if (application != null && confirmationCode != null && application.getConfirmationCode() != null
&& application.getConfirmationCode().equals(confirmationCode)) {
application.submitApplication();
request.setAttribute("applicationSaved", Boolean.TRUE);
}
return confirmEmail(mapping, form, request, response);
}