public ActionForward addPeriod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
final CreateGratuityPhdPRPeriodBean period = getRenderedObject("period");
final CreateGratuityPhdBean bean = getRenderedObject("bean");
final CreateGratuityPhdPRQuickBean quirks = getRenderedObject("quirks");
final PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
if (period.periodEndDate == null || period.periodStartDate == null || period.limitePaymentDay == null) {
addErrorMessage(request, "bean", "error.missing.field.in.period.form");
return prepareAddGratuityPhdPostingRule(mapping, form, request, response);
}