byte[] inVBytes = ValueUtils.serialize(edge.inVertex().id());
output.writeInt(inVBytes.length);
output.writeBytes(inVBytes);</BUG>
}
public HBaseEdge read(Kryo kryo, Input input, Class<HBaseEdge> type) {
<BUG>HBaseEdge edge = super.read(kryo, input, type);
int outVBytesLen = input.readInt();
Object outVId = ValueUtils.deserialize(input.readBytes(outVBytesLen));
int inVBytesLen = input.readInt();
Object inVId = ValueUtils.deserialize(input.readBytes(inVBytesLen));</BUG>
edge.setOutVertex(new HBaseVertex(null, outVId));

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
public class HBaseEdgeSerializer extends HBaseElementSerializer<HBaseEdge> {
public void write(Kryo kryo, Output output, HBaseEdge edge) {
super.write(kryo, output, edge);
kryo.writeClassAndObject(output, edge.outVertex().id());
kryo.writeClassAndObject(output, edge.inVertex().id());
}
public HBaseEdge read(Kryo kryo, Input input, Class<HBaseEdge> type) {
HBaseEdge edge = super.read(kryo, input, type);
Object outVId = kryo.readClassAndObject(input);
Object inVId = kryo.readClassAndObject(input);
edge.setOutVertex(new HBaseVertex(null, outVId));
