docs: private BudgetYear1DataType getBudgetYear1DataType(BudgetPeriodDto periodInfo) {
  
          BudgetYear1DataType budgetYear = BudgetYear1DataType.Factory.newInstance();
          ScaleTwoDecimal totalDirectCostSharing = ScaleTwoDecimal.ZERO;
          ScaleTwoDecimal totalIndirectCostSharing = ScaleTwoDecimal.ZERO;
          if (periodInfo != null) {
              budgetYear.setBudgetPeriodStartDate(s2SDateTimeService.convertDateToCalendar(periodInfo.getStartDate()));
              budgetYear.setBudgetPeriodEndDate(s2SDateTimeService.convertDateToCalendar(periodInfo.getEndDate()));
              gov.grants.apply.forms.rrFedNonFedBudgetV11.BudgetYearDataType.BudgetPeriod.Enum budgetPeriodEnum = gov.grants.apply.forms.rrFedNonFedBudgetV11.BudgetYearDataType.BudgetPeriod.Enum
                      .forInt(periodInfo.getBudgetPeriod());
              budgetYear.setBudgetPeriod(budgetPeriodEnum);
              budgetYear.setKeyPersons(getKeyPersons(periodInfo));
              budgetYear.setOtherPersonnel(getOtherPersonnel(periodInfo));
              SummaryDataType summary = SummaryDataType.Factory.newInstance();
              if (periodInfo.getTotalCompensation() != null) {
                  summary.setFederalSummary(periodInfo.getTotalCompensation().bigDecimalValue());
              }
              if (periodInfo.getTotalCompensationCostSharing() != null) {
                  if (budget.getSubmitCostSharingFlag()) {
                      summary.setNonFederalSummary(periodInfo.getTotalCompensationCostSharing().bigDecimalValue());
                      if (periodInfo.getTotalCompensation() != null) {
                          summary.setTotalFedNonFedSummary(periodInfo.getTotalCompensation().add(
                                  periodInfo.getTotalCompensationCostSharing()).bigDecimalValue());
                      } else {
                          summary.setTotalFedNonFedSummary(periodInfo.getTotalCompensationCostSharing().bigDecimalValue());
                      }
                  } else {
                      summary.setNonFederalSummary(BigDecimal.ZERO);
                      if (periodInfo.getTotalCompensation() != null) {
                          summary.setTotalFedNonFedSummary(periodInfo.getTotalCompensation().bigDecimalValue());
                      } else {
                          summary.setTotalFedNonFedSummary(BigDecimal.ZERO);
                      }
                  }
              }
              budgetYear.setTotalCompensation(summary);
              budgetYear.setEquipment(getEquipment(periodInfo));
              budgetYear.setTravel(getTravel(periodInfo));
              budgetYear.setParticipantTraineeSupportCosts(getParticipantTraineeSupportCosts(periodInfo));
              budgetYear.setOtherDirectCosts(getOtherDirectCosts(periodInfo));
              SummaryDataType summaryDirect = SummaryDataType.Factory.newInstance();
              if (periodInfo.getDirectCostsTotal() != null) {
                  summaryDirect.setFederalSummary(periodInfo.getDirectCostsTotal().bigDecimalValue());
              }
              if (periodInfo.getTotalDirectCostSharing() != null){
              totalDirectCostSharing = periodInfo.getTotalDirectCostSharing();
              }
              summaryDirect.setNonFederalSummary(totalDirectCostSharing.bigDecimalValue());
              if (periodInfo.getDirectCostsTotal() != null) {
                  summaryDirect.setTotalFedNonFedSummary(periodInfo.getDirectCostsTotal().add(totalDirectCostSharing).bigDecimalValue());
              }
              else {
                  summaryDirect.setTotalFedNonFedSummary(totalDirectCostSharing.bigDecimalValue());
              }
              budgetYear.setDirectCosts(summaryDirect);
              budgetYear.setIndirectCosts(getIndirectCosts(periodInfo));
              budgetYear.setCognizantFederalAgency(periodInfo.getCognizantFedAgency());
              if (periodInfo.getIndirectCosts().getTotalIndirectCostSharing() != null){
                  totalIndirectCostSharing = periodInfo.getIndirectCosts().getTotalIndirectCostSharing();
              }
              SummaryDataType summaryTotal = SummaryDataType.Factory.newInstance();
              if (periodInfo.getTotalCosts() != null) {
                  summaryTotal.setFederalSummary(periodInfo.getTotalCosts().bigDecimalValue());
              }
              if (periodInfo.getCostSharingAmount() != null) {
                  summaryTotal.setNonFederalSummary(totalDirectCostSharing.bigDecimalValue().add(totalIndirectCostSharing.bigDecimalValue()));
                  if (periodInfo.getTotalCosts() != null) {
                      summaryTotal.setTotalFedNonFedSummary(periodInfo.getTotalCosts().add(totalDirectCostSharing).add(totalIndirectCostSharing)
                              .bigDecimalValue());
                  }
                  else {
                      summaryTotal.setTotalFedNonFedSummary(totalDirectCostSharing.bigDecimalValue().add(totalIndirectCostSharing.bigDecimalValue()));
                  }
              }
              budgetYear.setTotalCosts(summaryTotal);
          }
          
          return budgetYear;
      }