Java API sdk check if realm already exists

Hello.

How can I check If realm already exists ? I can’t find a proper method.

Hi,

when using the Keycloak admin client you can view all available endpoints in the code itself.
Eg. https://github.com/keycloak/keycloak/tree/master/integration/admin-client/src/main/java/org/keycloak/admin/client/resource
The one you are interested is probably https://github.com/keycloak/keycloak/blob/master/integration/admin-client/src/main/java/org/keycloak/admin/client/resource/RealmsResource.java