public static DepositAccountInterestRateChartSlabs from(
     InterestRateChartSlab interestRateChartSlab,
     DepositAccountInterestRateChart depositAccountInterestRateChart) {
   InterestRateChartSlabFields slabFields = interestRateChartSlab.slabFields();
   Set<DepositAccountInterestIncentives> depositInterestIncentives = new HashSet<>();
   Set<InterestIncentives> incentives = interestRateChartSlab.setOfInterestIncentives();
   for (InterestIncentives incentive : incentives) {
     depositInterestIncentives.add(
         DepositAccountInterestIncentives.from(null, incentive.interestIncentivesFields()));
   }
   DepositAccountInterestRateChartSlabs chartSlabs =
       new DepositAccountInterestRateChartSlabs(
           slabFields, depositAccountInterestRateChart, depositInterestIncentives);
   chartSlabs.updateIncentiveReference();
   return chartSlabs;
 }
 private void updateIncentiveReference() {
   final Set<DepositAccountInterestIncentives> incentives = setOfIncentives();
   for (DepositAccountInterestIncentives depositInterestIncentives : incentives) {
     depositInterestIncentives.updateDepositAccountInterestRateChartSlabs(this);
   }
 }