class InstrumentAccountCodeRepository {

    public InstrumentAccountCode findById(InstrumentAccountCode instrumentAccountCode) {
        InstrumentAccountCodeEntity entity = instrumentAccountCodeJdbcRepository
                .findById(new InstrumentAccountCodeEntity().toEntity(instrumentAccountCode));
        if (entity != null)
            return entity.toDomain();

        return null;

    }

    @Autowired public  InstrumentAccountCodeRepository(InstrumentAccountCodeJdbcRepository instrumentAccountCodeJdbcRepository,
            InstrumentAccountCodeQueueRepository instrumentAccountCodeQueueRepository,
            @Value("${persist.through.kafka}") String persistThroughKafka,
            InstrumentAccountCodeESRepository instrumentAccountCodeESRepository,
            FinancialConfigurationContractRepository financialConfigurationContractRepository);

}