CachedField cachedField;
if (fieldClass.isPrimitive()) {
if (fieldClass == boolean.class)
cachedField = new ObjectBooleanField(ser);
else if (fieldClass == byte.class)
cachedField = new ObjectByteField(ser);
else if (fieldClass == char.class)
cachedField = new ObjectCharField(ser);
else if (fieldClass == short.class)
cachedField = new ObjectShortField(ser);
else if (fieldClass == int.class)