}
}
private void addAmountForGratuitySituation(final SibsIncommingPaymentFileDetailLine detailLine,
GratuitySituationPaymentCode paymentCode) {
final GratuitySituation gratuitySituation = paymentCode.getGratuitySituation();
switch (gratuitySituation.getStudentCurricularPlan().getSpecialization()) {
case STUDENT_CURRICULAR_PLAN_MASTER_DEGREE:
addMasterDegreeGratuityAmount(detailLine.getAmount());
break;
case STUDENT_CURRICULAR_PLAN_INTEGRATED_MASTER_DEGREE:
addIntegratedMasterDegreeGratuityAmount(detailLine.getAmount());
break;
case STUDENT_CURRICULAR_PLAN_SPECIALIZATION:
addSpecializationGratuityAmount(detailLine.getAmount());
break;
default:
throw new RuntimeException("Unknown specialization "
+ gratuitySituation.getStudentCurricularPlan().getSpecialization().name());
}
}