The code for all a few implementations, Java, Groovy, and Kotlin, is in this GitHub repository, which holds all kinds of other examples too. I suppose to essentially go overboard I should add this to some Docker container, or change it to your microservice and deploy it to be a cloud function, or — no, This is certainly now greater than adequate.