Keycloak java admin client proxy configuration

i found a solution, just pass a Resteasyclient to the KeycloakBuilderas follows:

    private Keycloak getKeycloakInstance() {
    return KeycloakBuilder.builder()
            .serverUrl(KEYCLOAK_SERVER_URL)
            .realm(KEYCLOAK_REALM)
            .username(KEYCLOAK_USERNAME)
            .password(KEYCLOAK_PASSWORD)
            .grantType(OAuth2Constants.PASSWORD)
            .clientId(KEYCLOAK_ADMIN_CLI)
            .clientSecret(KEYCLOAK_ADMIN_SECRET)
            .resteasyClient(new ResteasyClientBuilder().defaultProxy("localhost", 8888, "http").build())
            .build();
}