title: Create user in keycloak through keycloak admin client returns IllegalArgumentException
body: <p>I want to create a user through keycloak admin client but I am getting: </p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: RESTEASY003720: path param realm has not been provided by the parameter map</p>
  </blockquote>
  
  <p>Here's my bean for keycloak:</p>
  
  <pre><code>@Bean
  Keycloak keycloak() {
  return KeycloakBuilder
      .builder()
      .serverUrl(localhost:9080/auth)
      .realm(REALM)
      .clientId(CLIENT_ID)
      .username(USERNAME)
      .password(PASSWORD)
      .resteasyClient(new ResteasyClientBuilder().connectionPoolSize(10).build())
      .build();
  }
  </code></pre>
  
  <p>I use this code for calling keycloak:</p>
  
  <pre><code>CredentialRepresentation credentialRepresentation = new 
  CredentialRepresentation();
  credentialRepresentation.setType(CredentialRepresentation.PASSWORD);
  credentialRepresentation.setValue(password);
  UserRepresentation userRepresentation = new UserRepresentation();
  userRepresentation.setUsername(username);
  userRepresentation.setFirstName(firstName);
  userRepresentation.setLastName(lastName);
  userRepresentation.setEnabled(true);
  userRepresentation.setCredentials(
      Arrays.asList(credentialRepresentation));
  keycloak.realm(REALM).users().create(userRepresentation);
  </code></pre>
  
  <p>both keycloak and keycloak admin client are the same version (4.0.0.Final)</p>
  
  <p>My stacktrace looks like this:</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: RESTEASY003720: path param realm has not been provided by the parameter map
    at org.jboss.resteasy.specimpl.ResteasyUriBuilder.replaceParameter(ResteasyUriBuilder.java:659)
    at org.jboss.resteasy.specimpl.ResteasyUriBuilder.buildString(ResteasyUriBuilder.java:581)
    at org.jboss.resteasy.specimpl.ResteasyUriBuilder.buildFromValues(ResteasyUriBuilder.java:780)
    at org.jboss.resteasy.specimpl.ResteasyUriBuilder.build(ResteasyUriBuilder.java:772)
    at org.jboss.resteasy.client.jaxrs.internal.ClientWebTarget.getUri(ClientWebTarget.java:108)
    at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.createRequest(ClientInvoker.java:124)
    at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104)
    at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:76)
    at com.sun.proxy.$Proxy240.grantToken(Unknown Source)
    at org.keycloak.admin.client.token.TokenManager.grantToken(TokenManager.java:89)
    at org.keycloak.admin.client.token.TokenManager.getAccessToken(TokenManager.java:69)
    at org.mycompany.usermanagement.service.KeycloakService.createUserInSSO(KeycloakService.java:45)</p>
  </blockquote>
  
  <p>and here is my build.gradle</p>
  
  <pre><code>compile group: 'org.keycloak', name: 'keycloak-admin-client', version: '4.0.0.Final'
  compile group: 'org.jboss.resteasy', name: 'resteasy-jaxrs', version: '3.1.4.Final'
  compile group: 'org.jboss.resteasy', name: 'resteasy-client', version: '3.1.4.Final'
  compile group: 'org.jboss.resteasy', name: 'resteasy-jackson2-provider', version: '3.1.4.Final'
  </code></pre>