How to clone a Keycloak realm on the same instance (fixing “duplicate key value violates unique…

If you’ve ever tried to duplicate a Keycloak realm on the same server — say, to spin up a myrealm-dev realm alongside your existing myrealm…