code: public static String getInstanceName(String instanceName, Config config) {
          String name = instanceName;
  
          if (name == null || name.trim().length() == 0) {
              name = createInstanceName(config);
          }
  
          return name;
      }
docs: Return real name for the hazelcast instance's instance
  
  @param instanceName -  template of the name
  @param config       -   config
  @return -   real hazelcast instance's name