code: public static final PravegaNodeUri encode(final NodeUri uri) {
          Preconditions.checkNotNull(uri, "uri");
          return new PravegaNodeUri(uri.getEndpoint(), uri.getPort());
      }
docs: Helper to convert NodeURI into PravegaNodeURI.
  
  @param uri Node URI.
  @return PravegaNodeURI.