code: public String getRegistryUrl() {
          String host = getRegistryHost();
          int port = getRegistryPort();
  
          host = host.substring(host.length() - 1).equals("/") ?
                  host.substring(0, host.length() - 1)
                  : host;
          host = host.replaceFirst("http://", "");
          host = host.replaceFirst("https://", "");
  
  
          return host + ":" + port;
      }
docs: --------------------- REGISTRY PROPERTIES -----------------