class BudgetDetailRepository {

    public BudgetDetail findById(final BudgetDetail budgetDetail) {

        final BudgetDetailEntity entity = budgetDetailJdbcRepository
                .findById(new BudgetDetailEntity().toEntity(budgetDetail));

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

        return null;

    }

    @Autowired public  BudgetDetailRepository(final BudgetDetailJdbcRepository budgetDetailJdbcRepository,
                                  final BudgetDetailQueueRepository budgetDetailQueueRepository,
                                  @Value("${persist.through.kafka}") final String persistThroughKafka,
                                  FinancialConfigurationContractRepository financialConfigurationContractRepository,
                                  BudgetDetailESRepository budgetDetailESRepository
    );

}