code: public static DefaultConnectionNameGenerator forProduct(String productName, String productVersion, String... comments) {
      return new DefaultConnectionNameGenerator(
          new UserAgentBuilder().append(productName, productVersion, comments));
    }
docs: Returns a new connection name generator that includes the given product information in the User Agent string.
  
  @param productName Product name to include in the User Agent string.
  @param productVersion Optional product version to include in the User Agent string. May be null.
  @param comments Optional comments to include in the User Agent string.