code: protected String createUserAgent(String name) {
          final String defaultUserAgent = environmentName == null ? name : String.format("%s (%s)", environmentName, name);
          return configuration.getUserAgent().orElse(defaultUserAgent);
      }
docs: Create a user agent string using the configured user agent if defined, otherwise
  using a combination of the environment name and this client name
  
  @param name the name of this client
  @return the user agent string to be used by this client