public class MarshalledValueExternalizer implements Externalizer {
/** The serialVersionUID */
private static final long serialVersionUID = 8473423584918714661L;
public void writeObject(Marshaller output, Object subject) throws IOException {
MarshalledValue mv = ((MarshalledValue) subject);
byte[] raw = mv.getRaw();
UnsignedNumeric.writeUnsignedInt(output, raw.length);
output.write(raw);
output.writeInt(mv.hashCode());
}