public byte[] encode(ServerSetsInstance serverSetsInstance) {
        try {
            return mapper.writeValueAsBytes(requireNonNull(serverSetsInstance, "serverSetsInstance"));
        } catch (JsonProcessingException e) {
            throw new RuntimeException("Failed to encode serverSetsInstance. serverSetsInstance: " +
                                       serverSetsInstance, e);
        }
    }
Encodes a single {@link ServerSetsInstance} into a byte array representation.
zookeeper3/src/main/java/com/linecorp/armeria/internal/common/zookeeper/ServerSetsNodeValueCodec.java