docs: private KeyPersonCompensationDataType getCompensation(
  			KeyPersonDto keyPerson, int budgetPeriod) {
  
  		KeyPersonCompensationDataType keyPersonCompensation = KeyPersonCompensationDataType.Factory
  				.newInstance();
          ScaleTwoDecimal baseSalaryByPeriod;
  		
  		if (keyPerson != null) {
  			if (keyPerson.getAcademicMonths() != null) {
  				keyPersonCompensation.setAcademicMonths(keyPerson
  						.getAcademicMonths().bigDecimalValue());
  			}
  			if (keyPerson.getCalendarMonths() != null) {
  				keyPersonCompensation.setCalendarMonths(keyPerson
  						.getCalendarMonths().bigDecimalValue());
  			}
  			if (keyPerson.getFringe() != null) {
  				keyPersonCompensation.setFringeBenefits(keyPerson.getFringe()
  						.bigDecimalValue());
  			}
  			if (keyPerson.getSummerMonths() != null) {
  				keyPersonCompensation.setSummerMonths(keyPerson
  						.getSummerMonths().bigDecimalValue());
  			}
  			if (keyPerson.getRequestedSalary() != null) {
  				keyPersonCompensation.setRequestedSalary(keyPerson
  						.getRequestedSalary().bigDecimalValue());
  			}
  			if (keyPerson.getFundsRequested() != null) {
  				keyPersonCompensation.setFundsRequested(keyPerson
  						.getFundsRequested().bigDecimalValue());
  			}
              if (pdDoc.getDevelopmentProposal().getBudgets() != null) {
                  baseSalaryByPeriod = s2sBudgetCalculatorService.getBaseSalaryByPeriod(pdDoc.getDevelopmentProposal().getBudgets().get(0)
                          .getBudgetId(), budgetPeriod, keyPerson);
                  if (baseSalaryByPeriod != null && baseSalaryByPeriod.isGreaterThan(ScaleTwoDecimal.ZERO)) {
                      keyPersonCompensation.setBaseSalary(baseSalaryByPeriod.bigDecimalValue());
                  }
                  else {
                      if (keyPerson.getBaseSalary() != null) {
                          keyPersonCompensation.setBaseSalary(keyPerson.getBaseSalary().bigDecimalValue());
                      }
                  }
              }
              else {
                  if (keyPerson.getBaseSalary() != null) {
                      keyPersonCompensation.setBaseSalary(keyPerson.getBaseSalary().bigDecimalValue());
                  }
              }
  		}
  		return keyPersonCompensation;
  	}