/** * Sets the base URL with the default from the Environment. * * @param environment the environment to use * @param endpoint the environment endpoint the application is accessing * @return the builder itself for chaining */ public Builder withBaseUrl(Environment environment, Environment.Endpoint endpoint) { this.baseUrl = environment.url(endpoint); return this; }