class BudgetReAppropriationRepository {

    public BudgetReAppropriation findById(final BudgetReAppropriation budgetReAppropriation) {

        final BudgetReAppropriationEntity entity = budgetReAppropriationJdbcRepository
                .findById(new BudgetReAppropriationEntity().toEntity(budgetReAppropriation));

        if (entity != null)
            return entity.toDomain();

        return null;

    }

    @Autowired public  BudgetReAppropriationRepository(final BudgetReAppropriationJdbcRepository budgetReAppropriationJdbcRepository,
                                           final BudgetReAppropriationQueueRepository budgetReAppropriationQueueRepository,
                                           @Value("${persist.through.kafka}") final String persistThroughKafka,
                                           FinancialConfigurationContractRepository financialConfigurationContractRepository,
                                           BudgetReAppropriationESRepository budgetReAppropriationESRepository
    );

}