docs: private BudgetSummary getBudgetSummary(BudgetSummaryDto budgetSummaryData) {
  
          BudgetSummary budgetSummary = BudgetSummary.Factory.newInstance();
          SummaryDataType summaryPersonnel = SummaryDataType.Factory.newInstance();
          SummaryDataType summarySeniorKey = SummaryDataType.Factory.newInstance();
          SummaryDataType directCosts = SummaryDataType.Factory.newInstance();
          SummaryDataType directIndirectCosts = SummaryDataType.Factory.newInstance();
          if (budgetSummaryData != null) {
              if (budgetSummaryData.getCumTotalFundsForSrPersonnel() != null) {
                  summarySeniorKey.setFederalSummary(budgetSummaryData.getCumTotalFundsForSrPersonnel().bigDecimalValue());
              }
              if (budgetSummaryData.getCumTotalNonFundsForSrPersonnel() != null) {
                  summarySeniorKey.setNonFederalSummary(budgetSummaryData.getCumTotalNonFundsForSrPersonnel().bigDecimalValue());
  
                  if (budgetSummaryData.getCumTotalFundsForSrPersonnel() != null) {
                      summarySeniorKey.setTotalFedNonFedSummary(budgetSummaryData.getCumTotalFundsForSrPersonnel().add(
                              budgetSummaryData.getCumTotalNonFundsForSrPersonnel()).bigDecimalValue());
                  }
                  else {
                      summarySeniorKey.setTotalFedNonFedSummary(budgetSummaryData.getCumTotalNonFundsForSrPersonnel()
                              .bigDecimalValue());
                  }
              }
              SummaryDataType summaryOtherPersonnel = SummaryDataType.Factory.newInstance();
              if (budgetSummaryData.getCumTotalFundsForOtherPersonnel() != null) {
                  summaryOtherPersonnel.setFederalSummary(budgetSummaryData.getCumTotalFundsForOtherPersonnel().bigDecimalValue());
              }
              if (budgetSummaryData.getCumTotalNonFundsForOtherPersonnel() != null) {
                  summaryOtherPersonnel.setNonFederalSummary(budgetSummaryData.getCumTotalNonFundsForOtherPersonnel()
                          .bigDecimalValue());
  
                  if (budgetSummaryData.getCumTotalFundsForOtherPersonnel() != null) {
                      summaryOtherPersonnel.setTotalFedNonFedSummary(budgetSummaryData.getCumTotalFundsForOtherPersonnel().add(
                              budgetSummaryData.getCumTotalNonFundsForOtherPersonnel()).bigDecimalValue());
                  }
                  else {
                      summaryOtherPersonnel.setTotalFedNonFedSummary(budgetSummaryData.getCumTotalNonFundsForOtherPersonnel()
                              .bigDecimalValue());
                  }
              }
              budgetSummary.setCumulativeTotalFundsRequestedOtherPersonnel(summaryOtherPersonnel);
              if (budgetSummaryData.getCumNumOtherPersonnel() != null) {
                  budgetSummary.setCumulativeTotalNoOtherPersonnel(budgetSummaryData.getCumNumOtherPersonnel().intValue());
              }
              if (budgetSummaryData.getCumTotalFundsForPersonnel() != null) {
                  summaryPersonnel.setFederalSummary(budgetSummaryData.getCumTotalFundsForPersonnel().bigDecimalValue());
              }
              if (budgetSummaryData.getCumTotalNonFundsForPersonnel() != null) {
                  summaryPersonnel.setNonFederalSummary(budgetSummaryData.getCumTotalNonFundsForPersonnel().bigDecimalValue());
                  if (budgetSummaryData.getCumTotalFundsForPersonnel() != null) {
                      summaryPersonnel.setTotalFedNonFedSummary(budgetSummaryData.getCumTotalFundsForPersonnel().add(
                              budgetSummaryData.getCumTotalNonFundsForPersonnel()).bigDecimalValue());
                  }
                  else {
                      summaryPersonnel
                              .setTotalFedNonFedSummary(budgetSummaryData.getCumTotalNonFundsForPersonnel().bigDecimalValue());
                  }
              }
              budgetSummary.setCumulativeEquipments(getCumulativeEquipments(budgetSummaryData));
              budgetSummary.setCumulativeTravels(getCumulativeTravels(budgetSummaryData));
              budgetSummary.setCumulativeTrainee(getCumulativeTrainee(budgetSummaryData));
              budgetSummary.setCumulativeOtherDirect(getCumulativeOtherDirect(budgetSummaryData));
              if (budgetSummaryData.getCumTotalDirectCosts() != null && budgetSummaryData.getCumTotalDirectCostSharing() != null) {
                  if (budgetSummaryData.getCumFee() != null) {
                      budgetSummary.setCumulativeFee(budgetSummaryData.getCumFee().bigDecimalValue());
                  }
                  directCosts.setFederalSummary(budgetSummaryData.getCumTotalDirectCosts().bigDecimalValue());
                  directCosts.setNonFederalSummary(budgetSummaryData.getCumTotalDirectCostSharing().bigDecimalValue());
                  directCosts.setTotalFedNonFedSummary(budgetSummaryData.getCumTotalDirectCosts().add(
                          budgetSummaryData.getCumTotalDirectCostSharing()).bigDecimalValue());
              }
              if (budgetSummaryData.getCumTotalIndirectCosts() != null && budgetSummaryData.getCumTotalIndirectCostSharing() != null) {
                  SummaryDataType summaryDataType = SummaryDataType.Factory.newInstance();
                  summaryDataType.setFederalSummary(budgetSummaryData.getCumTotalIndirectCosts().bigDecimalValue());
                  summaryDataType.setNonFederalSummary(budgetSummaryData.getCumTotalIndirectCostSharing().bigDecimalValue());
                  summaryDataType.setTotalFedNonFedSummary(budgetSummaryData.getCumTotalIndirectCosts().add(
                          budgetSummaryData.getCumTotalIndirectCostSharing()).bigDecimalValue());
                  budgetSummary.setCumulativeTotalFundsRequestedIndirectCost(summaryDataType);
              }
              if (budgetSummaryData.getCumTotalCosts() != null && budgetSummaryData.getCumTotalCostSharing() != null) {
                  directIndirectCosts.setFederalSummary(budgetSummaryData.getCumTotalCosts().bigDecimalValue());
                  directIndirectCosts.setNonFederalSummary(budgetSummaryData.getCumTotalCostSharing().bigDecimalValue());
                  directIndirectCosts.setTotalFedNonFedSummary(budgetSummaryData.getCumTotalCosts().add(
                          budgetSummaryData.getCumTotalCostSharing()).bigDecimalValue());
              }
          }
          budgetSummary.setCumulativeTotalFundsRequestedSeniorKeyPerson(summarySeniorKey);
          budgetSummary.setCumulativeTotalFundsRequestedPersonnel(summaryPersonnel);
          budgetSummary.setCumulativeTotalFundsRequestedDirectCosts(directCosts);
          budgetSummary.setCumulativeTotalFundsRequestedDirectIndirectCosts(directIndirectCosts);
          return budgetSummary;
      }