docs: public static String encodeMetadata(ServiceEndpoint serviceEndpoint) {
      try {
        return objectMapper.writeValueAsString(serviceEndpoint);
      } catch (IOException e) {
        LOGGER.error("Failed to write metadata: " + e);
        throw Exceptions.propagate(e);
      }
    }