for (final DegreeCurricularPlan dcp : bean.getDegreeCurricularPlans()) {
if (!dcp.isPast()) {
continue;
}
deactivateExistingPostingRule(EventType.GRATUITY, bean.getStartDate(), dcp.getServiceAgreementTemplate());
new PastDegreeGratuityPR(bean.getStartDate(), null, dcp.getServiceAgreementTemplate());
}
} else {
throw new RuntimeException("Unexpected rule type for gratuity posting rule");
}