docs: public static <T> byte[] serializeValue(T value, TypeSerializer<T> serializer) throws IOException {
  		if (value != null) {
  			// Serialize
  			DataOutputSerializer dos = new DataOutputSerializer(32);
  			serializer.serialize(value, dos);
  			return dos.getCopyOfBuffer();
  		} else {
  			return null;
  		}
  	}