}
public ActionForward manageEmailTemplates(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
MobilityEmailTemplateBean bean = new MobilityEmailTemplateBean();
MobilityApplicationProcess process = getProcess(request);
Set<MobilityProgram> mobilityPrograms = process.getCandidacyPeriod().getMobilityPrograms();
String templateType = request.getParameter("template");
if (templateType != null && templateType.equals("Reception")) {
bean.setType(MobilityEmailTemplateType.IST_RECEPTION);
MobilityEmailTemplate emailTemplate = process.getCandidacyPeriod().getEmailTemplateFor(bean.getType());
bean.setSubject(emailTemplate.getSubject());
bean.setBody(emailTemplate.getBody());
}
RenderUtils.invalidateViewState();