class AbstractFinanceService extends BaseTransactionalService {

    protected void updateFinancialYearData(D dbFinance, F financeResource) {
        if (financeResource.getOrganisationSize() != null) {
            dbFinance.setOrganisationSize(financeResource.getOrganisationSize());
        }
        if (dbFinance.getCompetition().getFundingType() == FundingType.KTP) {
            updateKtpYears(financeResource, dbFinance);
        } else if (TRUE.equals(dbFinance.getCompetition().getIncludeProjectGrowthTable())) {
            updateGrowthTable(financeResource, dbFinance);
        } else {
            updateEmployeesAndTurnover(financeResource, dbFinance);
        }
    }

}