// Use ASM-based serializers
if (fieldClass.isPrimitive()) {
if (fieldClass == boolean.class)
cachedField = new AsmBooleanField();
else if (fieldClass == byte.class)
cachedField = new AsmByteField();
else if (fieldClass == char.class)
cachedField = new AsmCharField();
else if (fieldClass == short.class)
cachedField = new AsmShortField();
else if (fieldClass == int.class)