}
else if (javaType == long.class) {
type.writeLong(builder, ((Number) value).longValue());
}
else if (javaType == double.class) {
type.writeDouble(builder, (Double) value);
}
else if (javaType == Slice.class) {
Slice slice = Slices.utf8Slice((String) value);
type.writeSlice(builder, slice, 0, slice.length());
}