Upgrading keycloak client implementation from 3.4.3 to 10.0.2 and getting error while instantiating Http object with new Http(configuration, configuration.getClientAuthenticator());

I am upgrading one of the AuthzClient custom implementations of keycloak project from 3.4.3 to 10.0.2.

Http http= new Http(configuration, configuration.getClientAuthenticator());

Now after updating keycloak to 10.0.2. Above code is breaking as getClientAuthenticator() of org.keycloak.authorization.client.Configuration class updated to default.

Could someone please suggest any workaround/alternative to achieve this?