putUnavailablePeriodsOnRequest(request);
}catch(DomainException e) { String gid =  request.getParameter("gid"); request.setAttribute("gid", gid); request.setAttribute("bean", bean); addActionMessage(request, e.getMessage(), null); return mapping.findForward("editPeriodOfVigilant"); }   VigilantGroupBean beanToPutOnRequest = new VigilantGroupBean(); String gid = request.getParameter("gid");  VigilantGroup group = (VigilantGroup) RootDomainObject.readDomainObjectByOID(VigilantGroup.class, Integer.valueOf(gid)); ExamCoordinator coordinator = getLoggedPerson(request).getCurrentExamCoordinator(); beanToPutOnRequest.setExamCoordinator(coordinator); beanToPutOnRequest.setSelectedVigilantGroup(group); putUnavailablePeriodsOnRequest(request, group); request.setAttribute("bean",beanToPutOnRequest);
    public ActionForward addUnavailablePeriodToVigilant(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        UnavailablePeriodBean bean = (UnavailablePeriodBean) RenderUtils.getViewState("periodCreation")                .getMetaObject().getObject();        Object[] args = { bean.getVigilant(), bean.getBeginDate(), bean.getEndDate(),                bean.getJustification() };        executeService(request, "CreateUnavailablePeriod", args);        putUnavailablePeriodsOnRequest(request);        return mapping.findForward("manageUnavailablePeriodsOfVigilants");    }