class SurrenderReasonRepository {

    public SurrenderReason findById(SurrenderReason surrenderReason) {
        SurrenderReasonEntity entity = surrenderReasonJdbcRepository
                .findById(new SurrenderReasonEntity().toEntity(surrenderReason));
        if (entity != null)
            return entity.toDomain();

        return null;

    }

    @Autowired public  SurrenderReasonRepository(SurrenderReasonJdbcRepository surrenderReasonJdbcRepository,
            SurrenderReasonQueueRepository surrenderReasonQueueRepository,
            @Value("${persist.through.kafka}") String persistThroughKafka,
            FinancialConfigurationContractRepository financialConfigurationContractRepository,
            SurrenderReasonESRepository surrenderReasonESRepository);

}