import com.esotericsoftware.kryo.io.Output;
import java.lang.reflect.Constructor;
import java.util.HashMap;
import java.util.Map;
public class HBaseElementSerializer<E extends HBaseElement> extends Serializer<E> {
<BUG>public void write(Kryo kryo, Output output, E element) {
byte[] idBytes = ValueUtils.serialize(element.id());
output.writeInt(idBytes.length);
output.writeBytes(idBytes);</BUG>
output.writeString(element.label());

import com.esotericsoftware.kryo.io.Output;
import java.lang.reflect.Constructor;
import java.util.HashMap;
import java.util.Map;
public class HBaseElementSerializer<E extends HBaseElement> extends Serializer<E> {
public void write(Kryo kryo, Output output, E element) {
kryo.writeClassAndObject(output, element.id());
output.writeString(element.label());
