class InstrumentTypeRepository {

    public InstrumentType findById(InstrumentType instrumentType) {
        InstrumentTypeEntity entity = instrumentTypeJdbcRepository
                .findById(new InstrumentTypeEntity().toEntity(instrumentType));
        if (entity != null)
            return entity.toDomain();

        return null;

    }

    @Autowired public  InstrumentTypeRepository(InstrumentTypeJdbcRepository instrumentTypeJdbcRepository,
            InstrumentTypeQueueRepository instrumentTypeQueueRepository,
            @Value("${persist.through.kafka}") String persistThroughKafka,
            FinancialConfigurationContractRepository financialConfigurationContractRepository,
            InstrumentTypeESRepository instrumentTypeESRepository);

}