currentType[0] = mapper.defaultImplementationOf(mapper.realClass(nodeName));
} else {
currentType[0] = mapper.realClass(classAttribute);
}
if (serializationMethodInvoker.supportsReadObject(currentType[0], false)) {
@SuppressWarnings("resource")
final CustomObjectInputStream objectInputStream = CustomObjectInputStream.getInstance(context,
callback, classLoaderReference);
serializationMethodInvoker.callReadObject(currentType[0], result, objectInputStream);
objectInputStream.popCallback();
} else {
try {
callback.defaultReadObject();
} catch (final IOException e) {
throw new ObjectAccessException("Could not call defaultWriteObject()", e);