docs: public static String getInstanceName(String instanceName, Config config) {
          String name = instanceName;
  
          if (name == null || name.trim().length() == 0) {
              name = createInstanceName(config);
          }
  
          return name;
      }