public ActionForward deleteRecommendationRequest(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws IOException {
final GenericApplication application = getDomainObject(request, "applicationExternalId");
final String confirmationCode = (String) getFromRequest(request, "confirmationCode");
final GenericApplicationRecomentation recommendation = getDomainObject(request, "recomentationId");
if (application != null && confirmationCode != null && application.getConfirmationCode() != null
&& application.getConfirmationCode().equals(confirmationCode) && recommendation != null
&& recommendation.getGenericApplication() == application) {
recommendation.sendEmailForRecommendationDelete();
removeRecommendationFromApplication(application, recommendation);
return confirmEmail(mapping, form, request, response);
}
request.setAttribute("invalidOrIncorrectConfirmationCode", Boolean.TRUE);
return listApplicationPeriods(mapping, form, request, response);