}
private byte[] serializeSymbol(NamedValue namedValue) throws IOException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
RDataWriter writer = new RDataWriter(context, baos);
writer.serialize(namedValue.getValue());
baos.close();
return baos.toByteArray();
}
}