if (writeMethod == null) {
throw new IllegalArgumentException(
"Unsupported field type " + field.getType().getProtocolType()
);
}
write.invokeVirtual(writeMethod);
//
// If not written because of a null, clean-up the stack
if (!isProtocolTypeJavaPrimitive(field) || !isFieldTypeJavaPrimitive(field)) {