'Kafka Connect Transformer - Override Value Based on a predicate

I have Kafka-Connect configured for a given topic. The topic messages looks like the following:

{
  "Id": "my-id",
  "Code": 1000,
.
.
.
}

I need to add a transformer, that transforms the "Code" value to 1001 in case the value is 1000, and to do nothing otherwise.

I did not find any transformed like that online, not by confluent, and not by any other open sources. Is it indeed not exist? This one I should implement by myself.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source