code: public static byte[] serializeServiceInstance(
        InetSocketAddress address,
        Map<String, Endpoint> additionalEndpoints,
        Status status,
        Codec<ServiceInstance> codec) throws IOException {
  
      ServiceInstance serviceInstance =
          new ServiceInstance(toEndpoint(address), additionalEndpoints, status);
      return serializeServiceInstance(serviceInstance, codec);
    }
docs: Serializes a service instance based on endpoints.
  @see #serializeServiceInstance(ServiceInstance, Codec)
  
  @param address the target address of the service instance
  @param additionalEndpoints additional endpoints of the service instance
  @param status service status