docs: public static ServiceEndpoint decodeMetadata(String metadata) {
      try {
        return objectMapper.readValue(metadata, ServiceEndpoint.class);
      } catch (IOException e) {
        LOGGER.error("Failed to read metadata: " + e);
        return null;
      }
    }