Source:
<code>public ConfigurationAsyncClient buildAsyncClient() { Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration().clone() : configuration; ConfigurationServiceVersion serviceVersion = version != null ? version : ConfigurationServiceVersion.getLatest(); <START> TokenCredential tokenCredentialEnvVar = tokenCredential; <END> ConfigurationClientCredentials configurationCredentials = null; String buildEndpoint = endpoint; if (tokenCredentialEnvVar == null) { configurationCredentials = getConfigurationCredentials(buildConfiguration); buildEndpoint = getBuildEndpoint(configurationCredentials); } Objects.requireNonNull(buildEndpoint); if (pipeline != null) { return new ConfigurationAsyncClient(buildEndpoint, pipeline, serviceVersion); } final List<HttpPipelinePolicy> policies = new ArrayList<>(); policies.add(new UserAgentPolicy(clientName, clientVersion, buildConfiguration, serviceVersion)); policies.add(new RequestIdPolicy()); policies.add(new AddHeadersPolicy(headers)); policies.add(new AddDatePolicy()); if (tokenCredentialEnvVar == null) { ConfigurationClientCredentials buildCredential = (credential == null) ? configurationCredentials : credential; if (buildCredential == null) { throw logger.logExceptionAsWarning(new IllegalStateException("'credential' is required.")); } policies.add(new ConfigurationCredentialsPolicy(buildCredential)); } else { TokenCredential buildTokenCredential = tokenCredential == null ? tokenCredentialEnvVar : tokenCredential; policies.add( new BearerTokenAuthenticationPolicy(buildTokenCredential, String.format("%s/.default", buildEndpoint))); } HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy == null ? new RetryPolicy() : retryPolicy); policies.addAll(this.policies); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline pipeline = new HttpPipelineBuilder() .policies(policies.toArray(new HttpPipelinePolicy[0])) .httpClient(httpClient) .build(); return new ConfigurationAsyncClient(buildEndpoint, pipeline, serviceVersion); }</code><technical_language>need this, class level reference</technical_language>

Target:
public ConfigurationAsyncClient buildAsyncClient() { Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration().clone() : configuration; ConfigurationServiceVersion serviceVersion = version != null ? version : ConfigurationServiceVersion.getLatest(); String buildEndpoint = endpoint; if (tokenCredential == null) { buildEndpoint = getBuildEndpoint(); } Objects.requireNonNull(buildEndpoint, "'Endpoint' is required and can not be null."); if (pipeline != null) { return new ConfigurationAsyncClient(buildEndpoint, pipeline, serviceVersion); } final List<HttpPipelinePolicy> policies = new ArrayList<>(); policies.add(new UserAgentPolicy(httpLogOptions.getApplicationId(), clientName, clientVersion, buildConfiguration)); policies.add(new RequestIdPolicy()); policies.add(new AddHeadersPolicy(headers)); policies.add(new AddDatePolicy()); if (tokenCredential != null) { policies.add( new BearerTokenAuthenticationPolicy(tokenCredential, String.format("%s/.default", buildEndpoint))); } else if (credential != null) { policies.add(new ConfigurationCredentialsPolicy(credential)); } else { logger.logExceptionAsError( new IllegalArgumentException("Missing credential information while building a client.")); } HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy == null ? DEFAULT_RETRY_POLICY : retryPolicy); policies.addAll(this.policies); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline pipeline = new HttpPipelineBuilder() .policies(policies.toArray(new HttpPipelinePolicy[0])) .httpClient(httpClient) .build(); return new ConfigurationAsyncClient(buildEndpoint, pipeline, serviceVersion); }