&& (instance.getMarkerValue() instanceof String) && ((String) instance.getMarkerValue())
.equals("LocalMarker"))) {
instance.setMarker(TypeCheckedObjectsTestSetValidator.markerKey,
TypeCheckedObjectsTestSetValidator.markerValue);
} else {
throw new SerializationException(
"Incorrect markers in TypeCheckedGenericClass server deserialization. "
+ "Custom instantiate probably not called.");
}
try {
Field declField = TypeCheckedGenericClass.class.getField("hashField");
Type declGenericType = declField.getGenericType();
SerializabilityUtil.resolveTypes(declGenericType, resolvedTypes);
instance.hashField = (HashMap) streamReader.readObject(declGenericType, resolvedTypes);
SerializabilityUtil.releaseTypes(declGenericType, resolvedTypes);
} catch (Exception e) {
throw new SerializationException(e);
}
}