public ServiceInstance<?> decode(byte[] znodeValue) {
        requireNonNull(znodeValue, "znodeValue");
        try {
            return mapper.readValue(znodeValue, type);
        } catch (IOException e) {
            throw new EndpointGroupException("invalid endpoint segment.", e);
        }
    }
Decodes a znode value to a {@link ServiceInstance}.
zookeeper3/src/main/java/com/linecorp/armeria/internal/common/zookeeper/CuratorXNodeValueCodec.java