class SocketAddressTemplate extends AbstractTemplate<SocketAddress> {

    @Override
    public SocketAddress read(Unpacker unpacker, SocketAddress endpoint, boolean required) throws IOException {
        unpacker.readArrayBegin();
        String host = unpacker.readString();
        int port = unpacker.readInt();
        unpacker.readArrayEnd();

        return new InetSocketAddress(host, port);
    }

    private  SocketAddressTemplate();

}