static public void createStandaloneGraduationGratuityPostingRule(final CreateStandaloneEnrolmentGratuityPRBean bean) {
check(AcademicPredicates.MANAGE_PAYMENTS);
if (bean.getRule() == StandaloneEnrolmentGratuityPR.class) {
for (final DegreeCurricularPlan degreeCurricularPlan : bean.getDegreeCurricularPlans()) {
final ServiceAgreementTemplate serviceAgreementTemplate = degreeCurricularPlan.getServiceAgreementTemplate();
deactivateExistingPostingRule(EventType.STANDALONE_ENROLMENT_GRATUITY, bean.getStartDate(),
serviceAgreementTemplate);
new StandaloneEnrolmentGratuityPR(bean.getStartDate(), null, serviceAgreementTemplate, bean.getEctsForYear(),
bean.getGratuityFactor(), bean.getEctsFactor());
}