public CachedField createCachedField (Class fieldClass, Field field, FieldSerializer ser) {
CachedField cachedField;
// 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)