code: public static RegisteredService of(String name, URI url, Optional<String> portName) {
          return new RegisteredService(name, url, portName);
      }
docs: Construct a new immutable {@code RegisteredService} instance.
  
  @param name The value for the {@code name} attribute
  @param url  The value for the {@code url} attribute
  @return An immutable RegisteredService instance